These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:21 pm Advanced search

<canvas>, fallback content and Javascript

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

<canvas>, fallback content and Javascript

Postby DanMan » Wed Apr 15, 2009 6:04 pm

I was playing around with the canvas tag and ran into a problem. My markup looks like this:
Code: Select all
<canvas height="480" width="320"><img src="some/path/ueber_cool.png" alt="Whatever" width="320" height="320"></canvas>


Then in my JS i'm grabbing that image via DOM methods, throw it into the canvas, do some post-processing and have it displayed.

That works like a charm im current Ff and Safari Versions, and degrades nicely for IE without document.createElement, but it does not work in even the latest Opera 10. There, the canvas tag is always empty DOM-wise (if you look at it through Dragonfly for example).

I consider this a bug in Opera (which i've already filed), but the thing is, that the spec doesn't seem to mention anything about that. Either that, or i haven't found/understood it. So is Opera really doing it wrong? I sure hope so.

Cheers
Dan
DanMan
<h6>
 
Posts: 5
Joined: Wed Apr 15, 2009 3:04 pm
Location: Germany

Postby zcorpan » Thu Apr 16, 2009 3:33 pm

It's a known bug in Opera. The spec defines this in the parser section.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby DanMan » Thu Apr 16, 2009 4:40 pm

zcorpan wrote:It's a known bug in Opera. The spec defines this in the parser section.

Mkay, thanks for clearing that up.
DanMan
<h6>
 
Posts: 5
Joined: Wed Apr 15, 2009 3:04 pm
Location: Germany


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest