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

Unified Diff: lib/parser.dart

Issue 987433005: remove most string concat, fixes #7 (Closed) Base URL: git@github.com:dart-lang/html.git@master
Patch Set: Created 5 years, 10 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/dom.dart ('k') | lib/src/token.dart » ('j') | lib/src/tokenizer.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/parser.dart
diff --git a/lib/parser.dart b/lib/parser.dart
index 860f3be6e430c56e26300aa0081009be182c7802..d81f88875ee3957a838708361a83779839f7953c 100644
--- a/lib/parser.dart
+++ b/lib/parser.dart
@@ -3395,7 +3395,7 @@ class InForeignContentPhase extends Phase {
Token processCharacters(CharactersToken token) {
if (token.data == "\u0000") {
- token.data = "\uFFFD";
+ token.replaceData("\uFFFD");
} else if (parser.framesetOK && !allWhitespace(token.data)) {
parser.framesetOK = false;
}
« no previous file with comments | « lib/dom.dart ('k') | lib/src/token.dart » ('j') | lib/src/tokenizer.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698