I’m looking at the “Multiple Elements with Text” example and it seems to have stopped working in the last few months. Testing in Firefox, I get this console error:
Uncaught TypeError: invalid assignment to const ‘parent’
It seems that it doesn’t like that
parent is getting its value re-assigned since it’s a
const parent = document.scripts[ document.scripts.length - 1 ].parentNode; // ... Other code, then parent = document.scripts[ document.scripts.length - 1 ].parentNode;
Looking at the file blame view, it looks like MarcoFugaro might’ve run a script that automatically changed it from
const, perhaps? Anybody know if this was unintentional?