htmljs-parser
Advanced tools
Comparing version 1.0.0 to 1.0.1
var CODE_NEWLINE = 10; | ||
function _removeDelimitersFromArguments(args) { | ||
var i = args.length; | ||
while(--i >= 0) { | ||
var arg = args[i]; | ||
args[i] = arg.substring(1, arg.length - 1); | ||
} | ||
} | ||
exports.createNotifiers = function(parser, listeners) { | ||
@@ -50,2 +58,5 @@ return { | ||
if (listeners.onopentag) { | ||
if (elementArguments) { | ||
_removeDelimitersFromArguments(elementArguments); | ||
} | ||
@@ -62,2 +73,6 @@ // set the staticText property for attributes that are simple | ||
if (attr.arguments) { | ||
_removeDelimitersFromArguments(attr.arguments); | ||
} | ||
delete attr.possibleStaticText; | ||
@@ -64,0 +79,0 @@ } |
{ | ||
"name": "htmljs-parser", | ||
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values", | ||
"keywords": [ | ||
"HTML", | ||
"parser", | ||
"JavaScript", | ||
"expressions", | ||
"browser", | ||
"server", | ||
"nodejs", | ||
"template", | ||
"compiler" | ||
], | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node_modules/.bin/mocha --ui bdd --reporter spec ./test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/philidem/htmljs-parser.git" | ||
}, | ||
"author": "Phillip Gates-Idem <phillip.idem@gmail.com>", | ||
"maintainers": "Phillip Gates-Idem <phillip.idem@gmail.com>", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"chai": "^3.2.0", | ||
"colors": "^1.1.2", | ||
"jshint": "^2.8.0", | ||
"mocha": "^2.3.0" | ||
}, | ||
"license": "MIT", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"version": "1.0.0" | ||
} | ||
"name": "htmljs-parser", | ||
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values", | ||
"keywords": [ | ||
"HTML", | ||
"parser", | ||
"JavaScript", | ||
"expressions", | ||
"browser", | ||
"server", | ||
"nodejs", | ||
"template", | ||
"compiler" | ||
], | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node_modules/.bin/mocha --ui bdd --reporter spec ./test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/philidem/htmljs-parser.git" | ||
}, | ||
"author": "Phillip Gates-Idem <phillip.idem@gmail.com>", | ||
"maintainers": "Phillip Gates-Idem <phillip.idem@gmail.com>", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"chai": "^3.2.0", | ||
"colors": "^1.1.2", | ||
"jshint": "^2.8.0", | ||
"mocha": "^2.3.0" | ||
}, | ||
"license": "MIT", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"version": "1.0.1" | ||
} |
@@ -251,3 +251,3 @@ htmljs-parser | ||
arguments: [ | ||
'(var i = 0; i < 10; i++)' | ||
'var i = 0; i < 10; i++' | ||
], | ||
@@ -276,3 +276,3 @@ attributes: [] | ||
arguments: [ | ||
'(x > y)' | ||
'x > y' | ||
] | ||
@@ -279,0 +279,0 @@ } |
@@ -1169,3 +1169,3 @@ var chai = require('chai'); | ||
arguments: [ | ||
'(x in y)' | ||
'x in y' | ||
], | ||
@@ -1185,3 +1185,3 @@ attributes: [] | ||
arguments: [ | ||
'(x in y)' | ||
'x in y' | ||
], | ||
@@ -1201,3 +1201,3 @@ attributes: [] | ||
arguments: [ | ||
'(x in ["Hello "+(name)+"!", "(World)"])' | ||
'x in ["Hello "+(name)+"!", "(World)"]' | ||
], | ||
@@ -1220,3 +1220,3 @@ attributes: [] | ||
arguments: [ | ||
'(x > y)' | ||
'x > y' | ||
] | ||
@@ -1240,3 +1240,3 @@ } | ||
arguments: [ | ||
'(x > y)' | ||
'x > y' | ||
] | ||
@@ -1257,3 +1257,3 @@ } | ||
arguments: [ | ||
'(var i = 0; i < 10; i++)' | ||
'var i = 0; i < 10; i++' | ||
], | ||
@@ -1264,3 +1264,3 @@ attributes: [ | ||
arguments: [ | ||
'(x > y)' | ||
'x > y' | ||
] | ||
@@ -1267,0 +1267,0 @@ } |
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
105190
2652