dart-archive / web-components

Dart package providing the web components platform polyfills
https://pub.dartlang.org/packages/web_components
BSD 3-Clause "New" or "Revised" License
18 stars 10 forks source link

Fix erroneous package path warnings with fragments #31

Open qfel opened 9 years ago

qfel commented 9 years ago

Fragments should be discarded when checking for import paths, currently I get a lot of warnings if URL contains "/" after "#", eg. for URLs like:

http://localhost:4543/ca#advertisers/7046/7047

I get a warning, even though it suggests using the same import path

Found bad packages uri in html import. All packages uris should point to the
packages symlink in the same folder as the entry point.

Entry point: http://localhost:4543/ca#advertisers/7046/7047
Owner document: http://localhost:4543/ca#advertisers/7046/7047
Current import: <link rel="import" href="packages/foo.html">
Corrected import: <link rel="import" href="packages/foo.html">