Skip to main content

Bug Tracker

Side navigation

#6032 closed enhancement (worksforme)

Opened February 04, 2010 09:36PM UTC

Closed February 05, 2010 04:21PM UTC

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@gmail.com
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');

Attachments (0)
Change History (2)

Changed February 04, 2010 09:38PM UTC by maheshep comment:1

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');

Changed February 05, 2010 04:21PM UTC by john comment:2

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.