javascript - How browsers update DOM from innerHTML property? -
I am trying to find out that browsers DOM update jobs when JavaScript The change occurs node. Perrier HTML property
Looking at the code:
& gt; Var obj = document.createElement ("DIV"); & Gt; Obj.innerHTML = '& lt; P & gt; & Lt; Span & gt; & Lt; / Span & gt; & Lt; / P & gt; & Lt; Div & gt; B & lt; / Div & gt; '; & Gt; Obj.childNodes [& lt; P & gt; & Lt; Span & gt; A & lt; / Span & gt; & Lt; / P & gt ;, & lt; Div & gt; B & lt; / Div>] It seems that magic is for me, because I think internal HTL is a property, not a function, so ...
How can JavaScript be notified about a change in a field to update the DOM tree?
Will a function call when someone changes a variable in javascript, or just a few daemon monitor nodes Generator HALTAB executed on each Javascript line?
If you wonder why this is the thing, I am writing a DOMParser and this is an issue for me.
Using the given references, I understood that the browser engine object. Watch or the object. Chrome).
But is there a way to do it in nodes?
Because I think internal HTML is a property, not a function
Supports JavaScript senders
The internal setter functionality is internally used internally even before it becomes part of standard native objects (such as DOM nodes).
Comments
Post a Comment