Closed Bug 124616 Opened 23 years ago Closed 23 years ago

-moz-outliner-image does not work for attributes values containing a period.

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: pwilson, Assigned: jag+mozilla)

Details

From Bugzilla Helper: User-Agent: Mozilla/4.75 [en] (Windows NT 5.0; U) BuildID: 2002020603-trunk Using the rdf:file datasource I am trying to assign an image based on file extension (which contains a leading period). outlinerchildren:-moz-outliner-image(FileNameCol, ext-.js ) etc. This does not work. Adding a selection handler and displaying the FileNameCol properties shows that a property ext-.js is present. The presence of the period seems to prevent a match. As a test I wrapped the data source to produce an extension attribute without the period. The file icons then appear. Sources supplied on request. Reproducible: Always Steps to Reproduce: 1.. 2. 3.
I doubt that a property containing a '.' can ever be made to work, since this is used as a CSS pseudoelement name (if I'm not reading the code wrong); I don't believe that a pseudoelement may not contain the character '.' (just like element names and classes cannot). So, unless there is some fancy footwork to, e.g., encode that character when dealing with in the outlinerbodyframe, this isn't going to work. Isn't it simpler to just use 'ext-js'/'ext-cpp' and trim the '.' before creating the property name?
Status: UNCONFIRMED → NEW
Ever confirmed: true
I feared this would be the case. I need to wrap the datasource for other reasons, so this works for me.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Well, I'm not 100% certain of my diagnosis, but I'm fairly certain. If someone wants to point out that I'm wrong, then please do. But, if you're OK with this for other reasons, then that's good.
You need to log in before you can comment on or make changes to this bug.