Test case details

Preparation Code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"> </script> <p>   Some text in the first paragraph. </p> <p>   Some more text, but in a different paragraph. </p>

Test cases

Test #1

document.getElementsByTagName('p')[0].innerHTML = 'Hello!!';

Test #2

$('p:first').text('Hello!!');

Test #3

$('p:first').html('Hello!!');