Closed Bug 287883 Opened 19 years ago Closed 19 years ago

Doesn't display image through JavaScript with content-type application/xhtml+xml

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: asr1983, Assigned: bugzilla)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2

I noticed the issue on http://jetsmarkskakklub.dk/v2/, where a 'Chart.dk' image
(/counter) isn't displayed in Firefox (and Mozilla, by the way, but works fine
in Opera). Narrowed it down to a problem with any kind of image loaded through
JavaScript, when content-type is set to application/xhtml+xml. Though the
JavaScript Console doesn't display any errors.
Made the following testcase:
http://skalske.dk/testcase.php (http://skalske.dk/testcase.txt).

Reproducible: Always

Steps to Reproduce:

Actual Results:  
No image displayed

Expected Results:  
Display the image
Attached file Testcase
Uploaded testcase
Dup of bug 192367 ?
Inline script is deprecated in XHTML.
In reply to comment #2, inline <script>ing is not deprecated.  However, the
specification states that XML parsers are allowed to silently remove comments
from XML data.  This means that the historical means of hiding scripts (with
comment tags) will not work.  Relevant section of the spec is linked below.

This bug is INVALID.

http://www.w3.org/TR/xhtml1/#C_4
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: