svg-parser
Advanced tools
Comparing version 1.0.2 to 1.0.3
# svg-parser changelog | ||
## 1.0.3 | ||
* Prevent infinite loops on bad final closing tag | ||
## 1.0.2 | ||
@@ -4,0 +8,0 @@ |
@@ -116,3 +116,3 @@ function getLocator ( source ) { | ||
var attribute; | ||
while ( attribute = getAttribute() ) { | ||
while ( i < source.length && ( attribute = getAttribute() ) ) { | ||
element.attributes[ attribute.name ] = attribute.value; | ||
@@ -167,3 +167,3 @@ } | ||
var name = ''; | ||
while ( validNameCharacters.test( source[i] ) ) name += source[ i++ ]; | ||
while ( i < source.length && validNameCharacters.test( source[i] ) ) name += source[ i++ ]; | ||
@@ -237,3 +237,3 @@ return name; | ||
function allowSpaces () { | ||
while ( whitespace.test( source[i] ) ) i += 1; | ||
while ( i < source.length && whitespace.test( source[i] ) ) i += 1; | ||
} | ||
@@ -240,0 +240,0 @@ |
@@ -122,3 +122,3 @@ (function (global, factory) { | ||
var attribute; | ||
while ( attribute = getAttribute() ) { | ||
while ( i < source.length && ( attribute = getAttribute() ) ) { | ||
element.attributes[ attribute.name ] = attribute.value; | ||
@@ -173,3 +173,3 @@ } | ||
var name = ''; | ||
while ( validNameCharacters.test( source[i] ) ) name += source[ i++ ]; | ||
while ( i < source.length && validNameCharacters.test( source[i] ) ) name += source[ i++ ]; | ||
@@ -243,3 +243,3 @@ return name; | ||
function allowSpaces () { | ||
while ( whitespace.test( source[i] ) ) i += 1; | ||
while ( i < source.length && whitespace.test( source[i] ) ) i += 1; | ||
} | ||
@@ -246,0 +246,0 @@ |
{ | ||
"name": "svg-parser", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Create a JSON-friendly object from an SVG string", | ||
@@ -5,0 +5,0 @@ "main": "dist/svg-parser.umd.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12234