Closed Bug 507621 Opened 16 years ago Closed 15 years ago

output element doesn't show external images

Categories

(Core Graveyard :: XForms, defect)

x86
Windows XP
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: tangui.lepense, Assigned: imphil)

Details

Attachments

(2 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729) Using the output element with mediatype attribute set as 'image/png' and an appropriate value for the value attribute doesn't work. Reproducible: Always Actual Results: Nothing is displayed Expected Results: An image should be displayed It is an very useful feature for generating charts (with Google charts) on the fly.
Attachment #391860 - Attachment mime type: application/xhtml+xml → image/svg+xml
Attachment #391860 - Attachment mime type: image/svg+xml → application/xhtml+xml
When doing no bind, @typelist is not set. This causes the image not to be displayed. This patch assumes that, if the node is not bound, a URL is given in @value and displays it.
Assignee: nobody → mail
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #391890 - Flags: review?(surkov.alexander)
Comment on attachment 391890 [details] [diff] [review] make non-bound xf:output with images work > /* output mediatype="image/*" */ >+html|*:root output[mozType|mediatype^="image"] { >+ -moz-binding: url('chrome://xforms/content/xforms-xhtml.xml#xformswidget-output-mediatype-anyURI'); >+} > html|*:root output[mozType|typelist~="http://www.w3.org/2001/XMLSchema#anyURI"][mozType|mediatype^="image"] { > -moz-binding: url('chrome://xforms/content/xforms-xhtml.xml#xformswidget-output-mediatype-anyURI'); > } might be worth to change the line above instead otherwise it's not needed.
Attached patch v2Splinter Review
remove unnecessary CSS rule.
Attachment #391890 - Attachment is obsolete: true
Attachment #391892 - Flags: review?(surkov.alexander)
Attachment #391890 - Flags: review?(surkov.alexander)
Attachment #391892 - Flags: review?(surkov.alexander) → review+
Attachment #391892 - Flags: review?(aaronr)
Attachment #391892 - Flags: review?(aaronr) → review+
Comment on attachment 391892 [details] [diff] [review] v2 I was hesitant about this variation on using @value, but as Philipp pointed out to me, it is already supported by Orbeon (http://www.orbeon.com/ops/doc/reference-xforms-guide#xforms-relative-paths-image-mediatype). And it does make sense. I've asked Philipp to follow up with the W3C to see if this Orbeon behavior (treating @value as anyURI if @mediatype present) is specific to images or if any mediatype value is provided.
checked into FF3 (cvs trunk)
(In reply to comment #8) > discussion is at > http://lists.w3.org/Archives/Public/www-forms/2009Aug/0021.html What is result of discussion? Should I put the patch to mercurial?
I thought the result was that we would back out this patch from cvs. Philipp, do you agree?
Yes, the WG does not seem to have really decided what to do with that syntax and thus it's probably best to back it out to avoid that people rely on that extension.
This bug never made it into hg trunk and the XForms WG seems to discourage this usage, so let's close it.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: