Comparing version 0.4.0 to 0.4.1
@@ -50,3 +50,3 @@ var sax = require('sax'); | ||
else if (type === 'text') { | ||
len = parser.startTagPosition - pos - 1; | ||
len = parser.textNode.length; | ||
} | ||
@@ -96,2 +96,8 @@ else if (type === 'open' && tag && tag.name === 'SCRIPT' | ||
parser.oncomment = function(comment) { | ||
src = buffered.slice(0, comment.length + 7) | ||
buffered = buffered.slice(comment.length + 7) | ||
stream.raw(src) | ||
}; | ||
parser.onclosetag = function (name) { | ||
@@ -98,0 +104,0 @@ stream.pre('close', name); |
{ | ||
"name" : "trumpet", | ||
"version" : "0.4.0", | ||
"version" : "0.4.1", | ||
"description" : "parse and transform streaming html using css selectors", | ||
@@ -5,0 +5,0 @@ "main" : "index.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
40284
43
866
17