Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
leonidpaslavskyi opened this issue Oct 27, 2022 · 3 comments

Comments

@leonidpaslavskyi
Copy link

I'm submitting a bug report

  • Library Version:
    1.10.2

Please tell us about your environment:

  • Operating System:
    Windows 10

  • Node Version:
    14.17.4

  • NPM Version:
    6.14.14
  • JSPM OR Webpack AND Version
    webpack 4.44.2
  • Browser:
    Chrome 106.0.5249.119

  • Language:
    TypeScript 4.0.3 | ESNext

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:

  • What is the expected behavior?
    Is should be processed without above error.

  • What is the motivation / use case for changing the behavior?

@bigopon
Copy link
Member

bigopon commented Nov 3, 2022

Please follow the main discussion at aurelia/framework#1003
Linked issue in the html spec change that causes this whatwg/dom#819

@bigopon bigopon closed this as completed Nov 3, 2022
@jded76
Copy link

jded76 commented Nov 4, 2022

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

@bigopon
Copy link
Member

bigopon commented Nov 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants