skip to Main Content

Get all items of a HTML element

Below is the output of alert( rd.innerHTML );: <ruby><rb>「わたし</rb><rt><br>watashi</rt></ruby><ruby><rb>は</rb><rt><br>wa</rt></ruby>」&lt;Name des Sprechers&gt;<br><ruby><rb>です</rb><rt><br>desu</rt></ruby>。 I like to iterate over all those nodes. I tried (among others): var items = rd.getElementsByTagName("*"); for (var i = 0; i < items.length; i++) { var item =…

VIEW QUESTION
Back To Top
Search