Bug Tracker

Opened 10 years ago

Closed 10 years ago

#6032 closed enhancement (worksforme)

Attribute Values are not correctly set

Reported by: maheshep Owned by:
Priority: major Milestone: 1.4.2
Component: unfiled Version: 1.4.1
Keywords: Cc: mahesh.ep@…
Blocked by: Blocking:

Description

This is a small bug that's very rare to identified and not human threat. But still a bug.

Scenario is I need to disable a button

For that i used $("#idButton").attr('disabled', 'disabled');

okay now comes the problem when i look into source, it's written as <input id="idButton" disabled="">

but the expected result is <input id="idButton" disabled="disabled">

the javascript has also this bug when i use document.getElementById('idButton').disabled = "diabled";

but javascript works fine on and only on document.getElementById('idButton').setAttribute('disabled','disabled');

Change History (2)

comment:1 Changed 10 years ago by maheshep

spelling mistake :(

corrected part the javascript has also this bug when i use document.getElementById('idButton').disabled = "disabled";

but javascript works fine on and only on document.getElementById('idButton').setAttribute('disabled','disabled');

comment:2 Changed 10 years ago by john

Resolution: worksforme
Status: newclosed

This sounds like more of an issue with Firebug (or whatever source viewer you're using) then with jQuery itself - since the result is working.

I don't think that this is something that we're going to explicitly tackle.

Note: See TracTickets for help on using tickets.