<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Hi Tyron,</div><div><br>On 24 Mei 2011, at 20:13, Tyron Madlener <<a ymailto="mailto:tyronx@gmail.com" href="mailto:tyronx@gmail.com">tyronx@gmail.com</a>> wrote:<br><br>> On Tue, May 24, 2011 at 2:49 PM, Aris Feryanto <<a ymailto="mailto:aris_feryanto@yahoo.com" href="mailto:aris_feryanto@yahoo.com">aris_feryanto@yahoo.com</a>> wrote:<br>>> On 24 Mei 2011, at 17:17, Marc Delisle <<a ymailto="mailto:marc@infomarc.info" href="mailto:marc@infomarc.info">marc@infomarc.info</a>> wrote:<br>>> <br>>>> Le 2011-05-24 03:19, Aris Feryanto a écrit :<br>>>>> Hi all,<br>>>>> <br>>>>> I've just merged my branch with the current phpMyAdmin official master<br>>>>> branch and want to add a new field in the settings page.<br>>>>> But, when I open
 settings page, then open some settings tab, I noted that<br>>>>> the green arrow button to restore default value is always shown on every<br>>>>> fields.<br>>>>> I also have confirmed this on the phpMyAdmin demo page.<br>>>>> Is some recent changes cause this?<br>>>> <br>>>> Hi Aris,<br>>>> thanks for noticing this.<br>>>> <br>>>> Using the technique explained in [0], it seems that this happened when<br>>>> upgrading from jQuery 1.4.4 to 1.6.1.<br>>> I found a link [0] and in the section "Upgrading From 1.5.2 to 1.6.1", there<br>>> are some notes about the new split of .attr() into two functions: .attr()<br>>> and .prop(). And I looked into config.js, there are a lot of usage of<br>>> .attr('tagName'), which is in jQuery 1.6.1 must be accessed through<br>>> .prop('tagName'). I think we can do a quick replace of .attr('X'),
 for some<br>>> X which is now considered as property in jQuery 1.6.1.<br>>> [0] http://blog.jquery.it/2011/05/12/jquery-1-6-1-released/<br>> <br>> I think you are incorrect. That behavior was indeed implemented in<br>> jQuery 1.6, but reverted back in 1.6.1.<br>> <br>> Hence the sentence in the blog:<br>> - "When updating from 1.5.2 to 1.6.1, you should not have to change<br>> any attribute code."<br>> - "However, as previously stated, jQuery 1.6.1 will allow you to use<br>> .attr() just as it was used before in all situations."<br>> <br>> So the bug (theoretically) should not come from the .attr() behavior.<br>> <br></div><div><br></div><div>Later in the blog, I see that even it is said that jQuery 1.6.1 will allow you to use .attr() just as it was used before in all situations, some DOM element only can be retrieved using .prop(). In the "preferred usage" table, while most properties are still
 supported for backward compatibility with .attr() (thicked gray), you can see some other attributes, including "tagName", only thicked for .prop().</div><div><br></div><div>I already tried this in Chrome's developer tools and using .attr('tagName') returns undefined.</div><div><br></div><div>--</div><div>Aris Feryanto</div></div></body></html>