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

Unified Diff: lib/src/emitters.dart

Issue 23072022: [pkg:web_ui] fix insertBefore case (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: also change pubspec 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 | « no previous file | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/emitters.dart
diff --git a/lib/src/emitters.dart b/lib/src/emitters.dart
index a92042e1bea886e108df1665e244f5556b695cb6..5744fad543890e52a63fa4a4ad74032738abc33e 100644
--- a/lib/src/emitters.dart
+++ b/lib/src/emitters.dart
@@ -921,7 +921,7 @@ void transformMainHtml(Document document, FileInfo fileInfo,
} else if (dartLoaderTag.parent != document.body) {
document.body.nodes.add(bootstrapScript);
} else {
- document.body.nodes.insertBefore(bootstrapScript, dartLoaderTag);
+ document.body.insertBefore(bootstrapScript, dartLoaderTag);
}
// Insert the "auto-generated" comment after the doctype, otherwise IE will
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698