If any element has html comments (e.g. ) along with some element which is also inside commented code, is rendered as element.
Example
Note: below mention commented line, renders 3 separate words (i.d class="word").
- first line
- student element
- closing comment (i.e.-->)
Now commented student rendered as element not commented line.
<school>
<!-- commented text. This student is not valid
<student id="1" name="S1"></student>
-->
<student id="2" name="S2"></student>
<student id="3" name="S3"></student>
</school>
If any element has html comments (e.g. ) along with some element which is also inside commented code, is rendered as element.
Example
Note: below mention commented line, renders 3 separate words (i.d class="word").
Now commented student rendered as element not commented line.
<school>
<!-- commented text. This student is not valid
<student id="1" name="S1"></student>
-->
<student id="2" name="S2"></student>
<student id="3" name="S3"></student>
</school>