Skip to content

Commit

Permalink
Fix #34 - remove parent node from comments as code has been removed (#39
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jonathanKingston authored and mozfreddyb committed Mar 22, 2017
1 parent 1ae424f commit b42f2e5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/rules/no-unsafe-innerhtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ module.exports = {
* Using the Esprima Demo, for example: http://esprima.org/demo/parse.html
*
* @param {Object} expression Checks whether this node is an allowed expression.
* @param {Object} parent Parent node of the expression node (first param)
* @returns {boolean}
*/
function allowedExpression(expression) {
/*
expression = { right-hand side of innerHTML or 2nd param to insertAdjacentHTML
parent is the parent node of the call or assignment.
*/
let allowed;
/* check the stringish-part, which is either the right-hand-side of
Expand Down

0 comments on commit b42f2e5

Please sign in to comment.