I have a function that scans across HTML DOM tree and does the job. The problem is that function is written with JQUERY and I have to translate it to native HTML.
Looking for native javascript alternative for jQuery's .contents() method to translate the following line:
$myroot.contents().each(function (ind) {.....
Assuming that $myroot will be standard HTML element, how can I get all its contents?
Thanks in advance.