Test case details

Preparation Code

<div id="content" class='container'>   <form method="post" action="/">     <h2>Traffic Light</h2>     <ul id="traffic_light">       <li><input type="radio" class="on" name="light" value="red" /> Red</li>       <li><input type="radio" class="off" name="light" value="yellow" /> Yellow</li>       <li><input type="radio" class="off" name="light" value="green" /> Green</li>     </ul>     <input class="button" id="traffic_button" type="submit" value="Go" />   </form> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/sizzle/2.0.0/sizzle.min.js"></script>

Test cases

Test #1

Sizzle('div.container input.button')

Test #2

Sizzle('.container .button')

Test #3

Sizzle('#content .button')

Test #4

Sizzle('#content input.button')