dart-archive / angular.dart

Legacy source repository. See github.com/dart-lang/angular
https://webdev.dartlang.org/angular/
1.24k stars 248 forks source link

fix(relative_url_resolver): Improve relative URI resolution for html #1693

Closed TedSander closed 9 years ago

TedSander commented 9 years ago

Certain values used in href, src, and action attributes inside of HTML will be rewritten incorrectly. Such as javascript: values, empty strings, #, and data: values. Add improved calculation if URIs are relative or not.

rkirov commented 9 years ago

Add closes #1667 to the commit

TedSander commented 9 years ago

Rado. The tests found a problem with the implementation. Fixed the relative URI logic to return the path that conforms with the tests. Can you PTAL?