Test case details

Preparation Code

<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script><input type="text" id="btn"></div>

Test cases

Test #1

//$("#btn").attr("disabled", "disabled"); $("#btn").attr({   "x": 100 / 2,   "y": 100 / 2,   "width": 100,   "height": 100,   "cx": 1,   "cy": 1,   "net": 1,   "pin": 1,   "number": 1 });

Test #2

//document.getElementById('btn').setAttribute("disabled", "disabled"); $("#btn").attr("x", 100 / 2)   .attr("y", 100 / 2)   .attr("width", 100)   .attr("height", 100)   .attr("cx", 1)   .attr("cy", 1)   .attr("net", 1)   .attr("pin", 1)   .attr("number", 1)

Test #3

//document.getElementById('btn').setAttribute("disabled", "disabled"); function setAttributes(el, attrs) {   for (var key in attrs) {     el.setAttribute(key, attrs[key]);   } } setAttributes(document.getElementById('btn'), {   "x": 100 / 2,   "y": 100 / 2,   "width": 100,   "height": 100,   "cx": 1,   "cy": 1,   "net": 1,   "pin": 1,   "number": 1 });