This repo is a place to reproduce DOM node bugs on Marko component.
NOTE: All bugs here are already fixed on the latest Marko 4.13.0 ๐๐ For the details, please see:
We use Node.js v8.11.1, Marko v4.9.7, and the latest Yarn.
yarn install
yarn start
Go to http://localhost:8080/
.
We got client-side error on expandable/accordion content.
Uncaught TypeError: Cannot read property 'parentNode' of null
at init-components-browser.js:259
...
To re-produce the bug: Run the server and go to:
http://localhost:8080/clickable-expander
.- or
http://localhost:8080/clickable-expander-no-textual-display
However, if we remove the client-side behaviour (no component.js
and click event handlers), the error is gone: http://localhost:8080/non-clickable-expander
We got client-side error on clsoign and showing dialog component:
Component.js:542 Uncaught TypeError: Cannot read property 'nextSibling' of null
at Component.___forEachNode (Component.js:542)
at Component.___detach (Component.js:533)
...
To re-produce the bug: Run the server and go to:
http://localhost:8080/bug-dialog-close
.
However, if we simplified the dialog (simple text instead of nested component Textual Display),
the error is gone (http://localhost:8080/bug-dialog-close-no-textual-display
)