Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10145

HTMLImports is not working, rendering the webcomponents.js polyfill useless.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 4.0.0
    • None
    • None
    • iPhone 5s, iOS 9.1, Cordova v.5.4.1

    Description

      Using Cordova-ios 4.0.0 from the master branch with the cordova-plugin-wkwebview-engine does not support HTMLImports with the webcomponents.js polyfill. This worked on UIWebview. The polyfill works fine in Safari. This makes development using the Polymer framework practically impossible.

      EDIT: It works, but only with http*:// urls. See https://issues.apache.org/jira/browse/CB-10143 for details.
      Check out this repo I made for a working and not working example:
      https://github.com/dlmma/HTMLImportsTest

      The only difference between index.html (not working) and index_working.html (working) is that the file is loaded from a server with CORS-enabled headers in the working one.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Wessberg Frederik Wessberg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: