Closed Bug 723048 Opened 12 years ago Closed 12 years ago

CSS Class names for scopes shouldn't have spaces

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 13

People

(Reporter: past, Assigned: vporof)

References

Details

Attachments

(1 file)

In debugger-view.js we currently use the scope name as its class name, leading to classes like "Local-scope" and "With block-scope". It would be nice to use more regular class names for scopes.
I'll take this.
Assignee: nobody → vporof
Attached patch v1Splinter Review
Also fixed typos in DVP__addProperty documentation.
Attachment #599593 - Flags: review?(past)
Comment on attachment 599593 [details] [diff] [review]
v1

Review of attachment 599593 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good.
Attachment #599593 - Flags: review?(past) → review+
Status: NEW → ASSIGNED
Although I have to admit it bothers me that we are still using a localizable string as a class name, I hope that this won't create more problems in the future.
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
(In reply to Panos Astithas [:past] from comment #4)
> Although I have to admit it bothers me that we are still using a localizable
> string as a class name, I hope that this won't create more problems in the
> future.

I can easily change this. However, we're not using it as a class name (it's just "scope"). We're using it as an id, and I don't think we're (or will be) querying it anywhere (because every scope is cached in DebuggerView.Properties).
(In reply to Victor Porof from comment #5)
> (In reply to Panos Astithas [:past] from comment #4)
> > Although I have to admit it bothers me that we are still using a localizable
> > string as a class name, I hope that this won't create more problems in the
> > future.
> 
> I can easily change this. However, we're not using it as a class name (it's
> just "scope"). We're using it as an id, and I don't think we're (or will be)
> querying it anywhere (because every scope is cached in
> DebuggerView.Properties).

I was mainly concerned with producing CSS errors in the console, but after reading the spec, I think it's fine:

http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/e1098816a74f
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/e1098816a74f
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 13
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: