-
Notifications
You must be signed in to change notification settings - Fork 248
Consider updating html5lib version dependency #1281
Comments
Do you have any info of potential backward incompatibilities in 0.11 ? |
I haven't been able to find any information about breaking changes or similar. Apparently the Dart Team didn't consider updating the changelog with changes between 0.10.0 and 0.11.0 important. I also haven't located an updated repository with the 0.11.0+ source. A diff between the two shows approximately half of the changes are removal of previously deprecated methods. As such I can only refer to the results of the Angular test suite, the Dart Editor analysis and my own app. |
Maybe @jmesserly has some ideas on the diff between 0.10 and 0.11 ? |
Also, maybe @vsavkin can take a look at this for us? It's blocking Angular + Polymer apps. |
We only do basic things with html5lib: parsing a doc, matching nodes based on attributes. The smoke test done by @taisph should be enough to prove it works. Are there any other deps that would need to be upgraded to play well with polymer ? |
I believe it was https://codereview.chromium.org//268623002 |
oh, and some of the DOM APIs were fixed to align better with dart:html and http://dom.spec.whatwg.org |
Polymer dropped html5lib (or a dependant dep did) somewhere between 0.12.0+1 and +5 but needs code_transformers >=0.2.0 <0.3.0. |
polymer.dart still depends on html5lib. https://github.com/dart-lang/bleeding_edge/blob/master/dart/pkg/polymer/pubspec.yaml#L15 |
@jmesserly Ok. It complained about it pre 0.12.0+1 but not on 0.12.0+5 and up. Maybe I missed something. |
I don't know if it is helpful at all but I did some more smoke testing: I widened code_transformers, html5lib and web_components on current angular.dart master branch (commit dba6727) and ran
Failing tests:
pubspec changes:
pub deps after upgrade:
(Updated: Added missing web_components change and Firefox didn't fail during the first couple of runs but did on the last run.) |
@taisph The failing test is incorrect. It was passing before because of a bug in Guinness, which was fixed in Guinness 0.1.14. The test was fixed in a branch that should be merged into master soon. For now, you can use Guinness 0.1.13. |
Testing suggests html5lib pubspec dependency can be expanded to <0.12.0, which would be helpful for people trying to use angular with polymer, core_elements etc.
I've bumped the version dependency locally and run the scripts/run-test.sh script as well as basic usage tests in my own Angular-based project. No code was harmed during this experiment.
pubspec.yaml
pub deps
The text was updated successfully, but these errors were encountered: