5 ms·
You know something has to perform low level DOM operations, right?
by MatthewPhillips 8y ago
You know something has to perform low level DOM operations, right?
- klibertp 8y agoSure, but I was under impression that it's best left to the C++ the browsers are written in?
- ecnahc515 8y agoThe browsers written in C++ are not doing DOM manipulation, they're providing the DOM abstraction itself.
- twic 8y agoUsing innerHTML kind of is leaving the DOM manipulation to the C++ the browsers are written in!
- orange8 8y agoUsing innerHTML is leaving the DOM manipulation to the C++ the browsers are written in. Using createElement is leaving the DOM manipulation to the C++ the browsers are written in. Using HTML is leaving the DOM manipulation to the C++ the browsers are written in. Using your framework (react/angular/etc) is leaving the part of the framework thats using innerHTML/createElement to leave the DOM manipulation to the C++ the browsers are written in. Whichever path you take, the browser must do some DOM manipulation to render anything.. because that is what browsers are built to do.