Closed Bug 297083 Opened 19 years ago Closed 8 years ago

Support non-text Label attribute types

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jhpedemonte, Unassigned)

References

Details

Currently, the Label code only supports text attributes, but we should support
other types, such as image or SVG labels.  From
https://bugzilla.mozilla.org/show_bug.cgi?id=291501#c8:

> Maybe the correct thing would be to do this in XBL (when our XBL patch
> is in) and then insert different anonymous content based on the mime type of
> the external document.
Blocks: 326372
Blocks: 326373
Assignee: aaronr → xforms
This is what currently happens.  We start loading an external resource for xf:label if it has @src on it.  When the stream starts coming back, we check to see what the content type is.  If it is not "text/plain", we throw an error and quit out.  This bug is to add support for more types (like images or SVG).
Is text/html or application/xhtml+xml also planned?
(In reply to comment #2)
> Is text/html or application/xhtml+xml also planned?
> 

As planned as imgages and SVG :-)  They'll all *probably* work right now.  Just need to take the time to test them to make sure.
RIP xforms
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.