Closed Bug 147976 Opened 22 years ago Closed 22 years ago

Inspect tool shows Value with two percent signs instead of one for progressmeter

Categories

(Core :: Disability Access APIs, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED
mozilla1.1alpha

People

(Reporter: dsirnapalli, Assigned: aaronlev)

Details

(Keywords: access)

Attachments

(1 file, 1 obsolete file)

<label control="det_progress" value="Determinate Progress Meter:"/>
<progressmeter id="det_progress" mode="determined" value="50%"/>

open Inspect tool, click on "show highlight rectangle button", move the cursor
over the progressmeter. watch value in the inspect tool, you see the value as
"50%%".
When i modify the above code without giving percentage sign(value="50") then
inspect tool shows right value ("50%"). I think you are adding % sign without
checking whether it is already given or not.
I checked xul examples. It's allowed that i can write both the below shown ways
<progressmeter id="det_progress" mode="determined" value="50%"/>
<progressmeter id="det_progress" mode="determined" value="50"/>
it's easy, taking...
Assignee: aaronl → kyle.yuan
aaron said he had already made a patch for this bug.
Assignee: kyle.yuan → aaronl
Status: NEW → ASSIGNED
Keywords: access
Priority: -- → P3
Target Milestone: --- → mozilla1.1alpha
Attachment #85637 - Attachment is obsolete: true
Comment on attachment 85638 [details] [diff] [review]
Does not add extra % sign if already there

if (!_retval.IsEmpty() && _retval.Last() != '%')

is more reasonable. 

r=kyle if above fixed
Attachment #85638 - Flags: review+
Comment on attachment 85638 [details] [diff] [review]
Does not add extra % sign if already there

sr=hewitt
Attachment #85638 - Flags: superreview+
fixed
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
-- Verified it in todays trunk build. Works fine. Marking bug as verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: