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

Unified Diff: lib/html5parser.dart

Issue 10916294: switch html5lib to new pkg layout (Closed) Base URL: https://github.com/dart-lang/html5lib.git@master
Patch Set: Created 8 years, 3 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/encoding_parser.dart ('k') | lib/inputstream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html5parser.dart
diff --git a/html5parser.dart b/lib/html5parser.dart
similarity index 99%
rename from html5parser.dart
rename to lib/html5parser.dart
index a0e18d291047f421e08e7bfbfa77bc59ff74a567..e95ded98132b48eade043f97f6a008622b0459de 100644
--- a/html5parser.dart
+++ b/lib/html5parser.dart
@@ -2,19 +2,21 @@
#import('dart:math');
#import('package:logging/logging.dart');
-#import('treebuilders/base.dart'); // for Marker
-#import('treebuilders/simpletree.dart');
-#import('lib/constants.dart');
-#import('lib/encoding_parser.dart');
-#import('lib/token.dart');
-#import('lib/utils.dart');
+#import('src/treebuilder.dart');
+#import('src/constants.dart');
+#import('src/encoding_parser.dart');
+#import('src/token.dart');
+#import('src/utils.dart');
#import('tokenizer.dart');
+#import('dom.dart');
// TODO(jmesserly): these APIs, as well as the HTMLParser contructor and
// HTMLParser.parse and parseFragment were changed a bit to avoid passing a
// first class type that is used for construction. It might be okay, but I'd
// like to find a good dependency-injection pattern for Dart rather than
// copy the Python API.
+// TODO(jmesserly): right now HTMLParser.parse API exposes tokenizer, which
+// means tokenizer itself is public. Ideally that would not be the case.
// TODO(jmesserly): Also some of the HTMLParser APIs are messed up to avoid
// editor shadowing warnings :\. Look for trailing underscores.
/**
« no previous file with comments | « lib/encoding_parser.dart ('k') | lib/inputstream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698