Skip to content

Commit

Permalink
Minor comments style edit
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSobky committed Jan 29, 2017
1 parent 585fda7 commit e94075e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/XSSBuster.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
var origin = window.location.origin ||
window.location.protocol + '//' + window.location.host;

/**
/*
* Matches evil URI schemes, event handlers, HTML entities,
* and scary curly notations!
*/
Expand Down Expand Up @@ -246,7 +246,7 @@
var hash, paramPair, paramIndex, paramModified, pathname, sanParam,
search, subIndex;
var isModified = false;
/**
/*
* For sanitizing the pathname property of
* the current window location object.
*/
Expand All @@ -255,7 +255,7 @@
urlObj.pathname = pathname;
isModified = true;
}
/**
/*
* For sanitizing the search property of
* the current window location object.
*/
Expand Down Expand Up @@ -298,7 +298,7 @@
isModified = true;
}
}
/**
/*
* For sanitizing the hash property of
* the current window location object.
*/
Expand Down Expand Up @@ -459,7 +459,7 @@
addListener(winObj, 'window', 'message', onmessageFn);
// Audit the current window URL.
auditUrl(winObj.location);
/**
/*
* For sanitizing the name property
* of the current window object.
*/
Expand All @@ -470,7 +470,7 @@
winObj.name = name;
}
}
/**
/*
* For sanitizing the title of the current document.
* And yep, `document.title` can be -partially?-
* manipulated by attackers as in search pages!
Expand Down
10 changes: 5 additions & 5 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

var testDiv = document.getElementById('test');

/*
* Registers a new cross-browser event listener.
/**
* Register a new cross-browser event listener.
*
* @param evName {string}, the name of the event to register.
* @param callback {function}, a callback function for the event listener.
Expand All @@ -23,7 +23,7 @@
};
})();

/*
/**
* Create a script element.
*
* @return {object}, a script node.
Expand All @@ -34,8 +34,8 @@
return scriptEl;
};

/*
* Tests any given sink function.
/**
* Test any given sink function.
*
* @param fn {function}, a sink function.
* @param name {string}, a sink function's name.
Expand Down

0 comments on commit e94075e

Please sign in to comment.