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

Issue 268623002: [html5lib] implement querySelector/querySelectorAll (Closed)

Created:
6 years, 7 months ago by Jennifer Messerly
Modified:
6 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

[html5lib] implement querySelector/querySelectorAll BUG= https://code.google.com/p/dart/issues/detail?id=18508 * tests from https://github.com/w3c/web-platform-tests/tree/master/selectors-api, kept as close to original as I could. * src/query_selector.dart is most interesting file. It implements enough of selectors to pass the basic web platform tests. Ironically, it was the easiest part of this CL... * many fixes to csslib. Almost all of the selector tests were skipped (https://github.com/dart-lang/csslib-test-suite/blob/master/suite/selectors3/selectors3_test.dart) and there was a lot of things broken: unicode, escaping, incorrectly treating ident-tokens as units, probably more that I am forgetting :). Fixed as much as I could without doing major surgery. * a bunch of fixes to the htm5lib DOM to bring it closer in alignment with dom.spec.whatwg.org and dart:html. The driving force was to minimize the changes needed on the W3C tests. Note: haven't updated things that depend on html5lib like Polymer yet. R=sigmund@google.com Committed: https://code.google.com/p/dart/source/detail?r=35941

Patch Set 1 : #

Patch Set 2 : update dom comment #

Patch Set 3 : rename runes to chars #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2088 lines, -457 lines) Patch
M pkg/csslib/lib/parser.dart View 11 chunks +55 lines, -24 lines 0 comments Download
M pkg/csslib/lib/src/token.dart View 1 chunk +13 lines, -0 lines 0 comments Download
M pkg/csslib/lib/src/tokenizer.dart View 1 2 11 chunks +77 lines, -36 lines 0 comments Download
M pkg/csslib/lib/src/tokenizer_base.dart View 5 chunks +28 lines, -35 lines 0 comments Download
M pkg/csslib/lib/src/tokenkind.dart View 2 chunks +0 lines, -2 lines 0 comments Download
M pkg/csslib/lib/src/tree.dart View 73 chunks +96 lines, -99 lines 0 comments Download
M pkg/csslib/lib/visitor.dart View 1 chunk +4 lines, -33 lines 0 comments Download
M pkg/csslib/pubspec.yaml View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/pkg.status View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M pkg/third_party/html5lib/lib/dom.dart View 1 24 chunks +204 lines, -149 lines 0 comments Download
M pkg/third_party/html5lib/lib/dom_parsing.dart View 2 chunks +2 lines, -3 lines 0 comments Download
M pkg/third_party/html5lib/lib/parser.dart View 5 chunks +8 lines, -8 lines 0 comments Download
M pkg/third_party/html5lib/lib/src/constants.dart View 1 chunk +1 line, -1 line 0 comments Download
A + pkg/third_party/html5lib/lib/src/css_class_set.dart View 1 2 3 1 chunk +109 lines, -2 lines 0 comments Download
A pkg/third_party/html5lib/lib/src/query_selector.dart View 1 chunk +288 lines, -0 lines 0 comments Download
M pkg/third_party/html5lib/lib/src/treebuilder.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M pkg/third_party/html5lib/pubspec.yaml View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M pkg/third_party/html5lib/test/dom_test.dart View 1 chunk +42 lines, -58 lines 0 comments Download
M pkg/third_party/html5lib/test/parser_feature_test.dart View 1 chunk +1 line, -1 line 0 comments Download
A pkg/third_party/html5lib/test/selectors/LICENSE View 1 chunk +9 lines, -0 lines 0 comments Download
A pkg/third_party/html5lib/test/selectors/README View 1 chunk +9 lines, -0 lines 0 comments Download
A pkg/third_party/html5lib/test/selectors/level1-content.html View 1 chunk +377 lines, -0 lines 0 comments Download
A pkg/third_party/html5lib/test/selectors/level1_baseline_test.dart View 1 chunk +117 lines, -0 lines 0 comments Download
A pkg/third_party/html5lib/test/selectors/level1_lib.dart View 1 2 3 1 chunk +275 lines, -0 lines 0 comments Download
A pkg/third_party/html5lib/test/selectors/selectors.dart View 1 2 3 1 chunk +363 lines, -0 lines 0 comments Download
M pkg/third_party/html5lib/test/support.dart View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Jennifer Messerly
6 years, 7 months ago (2014-05-01 04:21:56 UTC) #1
Jennifer Messerly
6 years, 7 months ago (2014-05-01 18:47:36 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/268623002/diff/60001/pkg/third_party/html5lib/lib/src/css_class_set.dart File pkg/third_party/html5lib/lib/src/css_class_set.dart (right): https://codereview.chromium.org/268623002/diff/60001/pkg/third_party/html5lib/lib/src/css_class_set.dart#newcode113 pkg/third_party/html5lib/lib/src/css_class_set.dart:113: abstract class CssClassSetImpl implements CssClassSet { was this ...
6 years, 7 months ago (2014-05-02 17:46:10 UTC) #3
Jennifer Messerly
hey Terry, do you mind if I submit this after fixing Siggi's comments? I'm happy ...
6 years, 7 months ago (2014-05-06 20:42:59 UTC) #4
Jennifer Messerly
thanks Siggi! comments addressed https://codereview.chromium.org/268623002/diff/60001/pkg/third_party/html5lib/lib/src/css_class_set.dart File pkg/third_party/html5lib/lib/src/css_class_set.dart (right): https://codereview.chromium.org/268623002/diff/60001/pkg/third_party/html5lib/lib/src/css_class_set.dart#newcode113 pkg/third_party/html5lib/lib/src/css_class_set.dart:113: abstract class CssClassSetImpl implements CssClassSet ...
6 years, 7 months ago (2014-05-08 21:15:40 UTC) #5
Jennifer Messerly
6 years, 7 months ago (2014-05-08 21:41:18 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r35941 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698