Skip to content

A place to expose Marko bugs related to DOM node ๐Ÿž

Notifications You must be signed in to change notification settings

abiyasa/marko-dom-node-bugs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Marko Bugs

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:

Install

We use Node.js v8.11.1, Marko v4.9.7, and the latest Yarn.

yarn install

Starting the server

yarn start

Go to http://localhost:8080/.

Bug Demos

Client-side error on expander button

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

Client-side error on dialog component

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)

About

A place to expose Marko bugs related to DOM node ๐Ÿž

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published