Polymer / polymer

Our original Web Component library.
https://polymer-library.polymer-project.org/
BSD 3-Clause "New" or "Revised" License
22.04k stars 2.01k forks source link

IE11 error w/ dom-repeat as slot content #4878

Closed robrez closed 2 years ago

robrez commented 6 years ago

Description

Pre-Conditions

An error is raised when the slot content of a custom element is a dom-repeat and the dom-repeat's items array is changed. This maybe an caused ultimately by dom-api polyfill...

The error can be avoided if the dom-repeat is wrapped in a div and the div is used as the slot content eg:

  <!-- error -->
  <x-slot>
    <template is="dom-repeat" items="[[data]]"></template>
  </x-slot>

  <!-- NO error -->
  <x-slot>
    <div>
      <template is="dom-repeat" items="[[data]]"></template>
     </div>
  </x-slot>

Live Demo

http://jsbin.com/zasusaqode/edit?html,output

Steps to Reproduce

  1. Create an element that accepts slot content
  2. Use a dom-repeat for the slot content
  3. Change the dom-repeat's items array
  4. Use ie11

Expected Results

Items are rendered without error

Actual Results

Rendering generates an error

Browsers Affected

Versions

dfreedm commented 6 years ago

Probably a ShadyDOM issue

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically closed after being marked stale. If you're still facing this problem with the above solution, please comment and we'll reopen!