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

Side by Side Diff: pkg/third_party/html5lib/lib/src/constants.dart

Issue 268623002: [html5lib] implement querySelector/querySelectorAll (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library constants; 1 library constants;
2 2
3 import 'utils.dart'; 3 import 'utils.dart';
4 4
5 // TODO(jmesserly): fix up the const lists. For the bigger ones, we need faster 5 // TODO(jmesserly): fix up the const lists. For the bigger ones, we need faster
6 // lookup than linear search "contains". In the Python code they were 6 // lookup than linear search "contains". In the Python code they were
7 // frozensets. 7 // frozensets.
8 8
9 final String EOF = null; 9 final String EOF = null;
10 10
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 Namespaces._(); 309 Namespaces._();
310 310
311 static String getPrefix(String url) { 311 static String getPrefix(String url) {
312 switch (url) { 312 switch (url) {
313 case html: return 'html'; 313 case html: return 'html';
314 case mathml: return 'math'; 314 case mathml: return 'math';
315 case svg: return 'svg'; 315 case svg: return 'svg';
316 case xlink: return 'xlink'; 316 case xlink: return 'xlink';
317 case xml: return 'xml'; 317 case xml: return 'xml';
318 case xmlns: return 'xmlns'; 318 case xmlns: return 'xmlns';
319 default: throw new ArgumentError(url); 319 default: return null;
320 } 320 }
321 } 321 }
322 } 322 }
323 323
324 const List scopingElements = const [ 324 const List scopingElements = const [
325 const Pair(Namespaces.html, "applet"), 325 const Pair(Namespaces.html, "applet"),
326 const Pair(Namespaces.html, "caption"), 326 const Pair(Namespaces.html, "caption"),
327 const Pair(Namespaces.html, "html"), 327 const Pair(Namespaces.html, "html"),
328 const Pair(Namespaces.html, "marquee"), 328 const Pair(Namespaces.html, "marquee"),
329 const Pair(Namespaces.html, "object"), 329 const Pair(Namespaces.html, "object"),
(...skipping 2783 matching lines...) Expand 10 before | Expand all | Expand 10 after
3113 'windows1252': 'cp1252', 3113 'windows1252': 'cp1252',
3114 'windows1253': 'cp1253', 3114 'windows1253': 'cp1253',
3115 'windows1254': 'cp1254', 3115 'windows1254': 'cp1254',
3116 'windows1255': 'cp1255', 3116 'windows1255': 'cp1255',
3117 'windows1256': 'cp1256', 3117 'windows1256': 'cp1256',
3118 'windows1257': 'cp1257', 3118 'windows1257': 'cp1257',
3119 'windows1258': 'cp1258', 3119 'windows1258': 'cp1258',
3120 'windows936': 'gbk', 3120 'windows936': 'gbk',
3121 'x-x-big5': 'big5' 3121 'x-x-big5': 'big5'
3122 }; 3122 };
OLDNEW
« no previous file with comments | « pkg/third_party/html5lib/lib/parser.dart ('k') | pkg/third_party/html5lib/lib/src/css_class_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698