Re:Asm-dom, a minimal WebAssembly virtual DOM to build C++ SPA
by austincheney on Monday March 16, 2020 @12:10PM
(#22593846)
Each approach is equally capable of resulting in an error state if unexpected input is supplied, for example pass an array into the document.getElementById. The largest important difference is that the input to the querySelector must be parsed as a coded instruction, a selector, while the input to getElementById is a string literal that does not get parsed.
[ Parent
| on HN ]
There are no comments on this comment yet.