aurelia / templating

An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.
MIT License
116 stars 104 forks source link

In aurelia template, it shows "Cannot read properties of null (reading 'insertBefore')" error. #709

Closed leonidpaslavskyi closed 1 year ago

leonidpaslavskyi commented 1 year ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: In aurelia template, I used multiple if.bind expressions for view elements. If I switches the condition value, it shows "Cannot read properties of null (reading 'insertBefore')" error like following: image

image

Expected/desired behavior:

bigopon commented 1 year ago

Please follow the main discussion at https://github.com/aurelia/framework/issues/1003 Linked issue in the html spec change that causes this https://github.com/whatwg/dom/pull/819

jded76 commented 1 year ago

@bigopon are you sure it's the same thing? The issue here says Chrome and doesn't mention Safari 16+ anywhere.

bigopon commented 1 year ago

Thanks @jded76 , I looked too quick and only saw insertBefore ... null. @leonidpaslavskyi sorry for closing too quickly, can you provide a repro?