This question is somehow theoretical.
My teacher is explaining us the theory behind DOM Documents. Now he is teaching us that in this example:
<span>
<p>Test</p>{CR}
{CR}
<p>Test2</p>
</span>
The tag span has 4 children. The 2 < p>’s and the 2 Carriage Return. Is that right? Can you provide me with some official sources?
Implementation specific. Some parsers convert the CR into a textnode containing the CR character and some parsers ignore it.
In compliant browsers it’s
span.childNodes === [Text("/n"), <p>Text</p>, Text("\n\n"), <p>test2</p>]