Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(865)

Unified Diff: ui/webui/resources/js/parse_html_subset.js

Issue 1150173003: Fix some JS style nits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/webui/resources/js/event_tracker.js ('k') | ui/webui/resources/js/webui_resource_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/parse_html_subset.js
diff --git a/ui/webui/resources/js/parse_html_subset.js b/ui/webui/resources/js/parse_html_subset.js
index 7262d0e9f9c9707654eaff189d27966967d7f515..a00c7828030f7a13704dd27aa168c6510417fda1 100644
--- a/ui/webui/resources/js/parse_html_subset.js
+++ b/ui/webui/resources/js/parse_html_subset.js
@@ -6,8 +6,8 @@
* Parse a very small subset of HTML. This ensures that insecure HTML /
* javascript cannot be injected into the new tab page.
* @param {string} s The string to parse.
- * @param {Array.<string>=} opt_extraTags Optional extra allowed tags.
- * @param {Object.<string, function(Node, string):boolean>=} opt_extraAttrs
+ * @param {Array<string>=} opt_extraTags Optional extra allowed tags.
+ * @param {Object<string, function(Node, string):boolean>=} opt_extraAttrs
* Optional extra allowed attributes (all tags are run through these).
* @throws {Error} In case of non supported markup.
* @return {DocumentFragment} A document fragment containing the DOM tree.
@@ -32,7 +32,7 @@ var parseHtmlSubset = (function() {
/**
* Whitelist of tag names allowed in parseHtmlSubset.
- * @type {!Array.<string>}
+ * @type {!Array<string>}
* @const
*/
var allowedTags = ['A', 'B', 'STRONG'];
« no previous file with comments | « ui/webui/resources/js/event_tracker.js ('k') | ui/webui/resources/js/webui_resource_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698