polymer-starter-kit icon indicating copy to clipboard operation
polymer-starter-kit copied to clipboard

changes in my-app.html breaks polymer-starter-kit (2.0-preview) in IE11

Open LawrenceMok opened this issue 9 years ago • 2 comments

I've identified that after the addition (0b67b51367f3754b369d00141dc604f2752ce7ee) of this part of code in src/my-app.html, polymer-starter-kit (2.0-preview) failed to work in IE11 when run with polymer serve:

   constructor() {
        super();

        // Get root pattern for app-route, for more info about `rootPath` see:
        // https://www.polymer-project.org/2.0/docs/upgrade#urls-in-templates
        this.rootPattern = (new URL(this.rootPath)).pathname;
      }

To be specific, this line caused the problem and when commented out, it works: this.rootPattern = (new URL(this.rootPath)).pathname;

LawrenceMok avatar May 27 '17 00:05 LawrenceMok

This is caused because IE11 doesn't support using new URL(...).pathname, updated to use alternative method for IE11 in #1021. Thanks for pointing this out @LawrenceMok!

jsilvermist avatar May 27 '17 03:05 jsilvermist

Fixed by #1021!

abdonrd avatar Jun 01 '17 17:06 abdonrd