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

Unified Diff: lib/safe_html.dart

Issue 22962005: Merge pull request #581 from kevmoo/polymer (Closed) Base URL: https://github.com/dart-lang/web-ui.git@polymer
Patch Set: Created 7 years, 4 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 | « lib/polymer_element.dart ('k') | lib/scoped_css.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/safe_html.dart
diff --git a/lib/safe_html.dart b/lib/safe_html.dart
index 60490ae6d9d4ef0075b0a6eb629f4819f9afc551..c15dd5c5b599c080113659caf796bb36ed9e02d1 100644
--- a/lib/safe_html.dart
+++ b/lib/safe_html.dart
@@ -10,7 +10,7 @@ library polymer.safe_html;
class SafeHtml {
/** Underlying html string. */
- String _html;
+ final String _html;
// TODO(sigmund): provide a constructor that does html validation
SafeHtml.unsafe(this._html);
@@ -26,7 +26,7 @@ class SafeHtml {
* to avoid cross-site scripting (XSS) attacks.
*/
class SafeUri {
- String _uri;
+ final String _uri;
// TODO(sigmund): provide a constructor that takes or creates a Uri and
// validates that it is safe (not a javascript: scheme, for example)
« no previous file with comments | « lib/polymer_element.dart ('k') | lib/scoped_css.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698