elm
Repos
25

Events

started
Created at 16 hours ago
started
Created at 1 day ago
opened issue
Runtime error with blank nodes

If you pass a blank node name to the Svg.node method it will compile, but will crash the browser.

import Svg

Svg.node "" [] []

Results in:

Uncaught TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'.
    at _VirtualDom_applyPatch (app.js:3759:13)
    at _VirtualDom_applyPatchesHelp (app.js:3717:17)
    at _VirtualDom_applyPatches (app.js:3708:9)
    at app.js:4081:16
    at updateIfNeeded (app.js:4615:56)

It looks like this also results in an infinite loop, since the number of errors keeps going until you refresh the page.

Created at 1 day ago
Created at 2 days ago
started
Created at 2 days ago
started
Created at 2 days ago
started
Created at 2 days ago
started
Created at 2 days ago
Created at 2 days ago
Created at 3 days ago
started
Created at 3 days ago
started
Created at 3 days ago
Created at 4 days ago
Created at 4 days ago
Created at 4 days ago
Created at 4 days ago
Created at 4 days ago
started
Created at 5 days ago
Created at 5 days ago
started
Created at 5 days ago
issue comment
Jumping to fragments does not work in a good way in `Browser.application`

Yup, it's this line for reference https://github.com/elm/browser/blob/master/src/Elm/Kernel/Browser.js#L157

Created at 5 days ago
issue comment
Jumping to fragments does not work in a good way in `Browser.application`

By setting target "_self" on links, Browser.application seems to ignore them for navigation. So, that's a simple workaround which also works for mailto: and 'tel:` links!

Created at 5 days ago
started
Created at 6 days ago
started
Created at 6 days ago
started
Created at 6 days ago
started
Created at 6 days ago
issue comment
Allow ignoring the path / Just parsing query parameters

no anytime soon probably, use different package

Created at 6 days ago
Created at 6 days ago
issue comment
Redundant removal and reinsertion of node breaks focus on element

Btw. the original case has been published (source still not public) since I filed this bug: it's the + button on https://sharesquare.xyz which gets focus on the initial load. The cell to the left of the cell holding the button is replaced by any number of cells once data finishes loading from localstorage. The key of this cell is chosen such that it works when up to 3 "participants" are loaded, but for 4 and above the focus gets lost.

Created at 6 days ago
issue comment
Redundant removal and reinsertion of node breaks focus on element

I also did an example that's closer to my original case in bisgardo/elm-virtual-dom-issue-178 (published here).

It uses the CSS trick to illustrate and shows that the bug is triggered when two (or more) consecutive elements with new keys are inserted.

Created at 6 days ago