simple-html-tokenizer
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -397,14 +397,18 @@ (function (global, factory) { | ||
attributeValueUnquoted: function() { | ||
var char = this.consume(); | ||
var char = this.peek(); | ||
if (isSpace(char)) { | ||
this.delegate.finishAttributeValue(); | ||
this.consume(); | ||
this.state = 'beforeAttributeName'; | ||
} else if (char === "&") { | ||
this.consume(); | ||
this.delegate.appendToAttributeValue(this.consumeCharRef(">") || "&"); | ||
} else if (char === ">") { | ||
this.delegate.finishAttributeValue(); | ||
this.consume(); | ||
this.delegate.finishTag(); | ||
this.state = 'beforeData'; | ||
} else { | ||
this.consume(); | ||
this.delegate.appendToAttributeValue(char); | ||
@@ -411,0 +415,0 @@ } |
@@ -347,14 +347,18 @@ import { preprocessInput, isAlpha, isSpace } from './utils'; | ||
attributeValueUnquoted: function() { | ||
var char = this.consume(); | ||
var char = this.peek(); | ||
if (isSpace(char)) { | ||
this.delegate.finishAttributeValue(); | ||
this.consume(); | ||
this.state = 'beforeAttributeName'; | ||
} else if (char === "&") { | ||
this.consume(); | ||
this.delegate.appendToAttributeValue(this.consumeCharRef(">") || "&"); | ||
} else if (char === ">") { | ||
this.delegate.finishAttributeValue(); | ||
this.consume(); | ||
this.delegate.finishTag(); | ||
this.state = 'beforeData'; | ||
} else { | ||
this.consume(); | ||
this.delegate.appendToAttributeValue(char); | ||
@@ -361,0 +365,0 @@ } |
{ | ||
"name": "simple-html-tokenizer", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Simple HTML Tokenizer is a lightweight JavaScript library that can be used to tokenize the kind of HTML normally found in templates.", |
Sorry, the diff of this file is not supported yet
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
201871
13
1258
0
51