View Single Post
Old 09-07-2012, 06:44 AM   #6
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,045
Karma: 4347035
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Doitsu View Post
Not according to the standard example posted on the W3C web site and pretty much everywhere else.
Not what? In that example it's outside the <img>, as I said it should (but, since it's HTML and not XHTML, the <img> has no self-closing mark).

Quote:
I played with image maps some time ago and had some problems with the standard example that almost every web site lists. For some reason epubcheck didn't like the pound sign (#) in usemap="#shapes", which most likely is a bug. Did your epub pass epubcheck?
There's a sample in the ePub 2.0.1 spec:

Code:
                <img src="example.gif" usemap="map"
                        title="Example Map"
                        alt="A picture of an example." />
                <map name="map">
                        <area href="example1.html"
                                alt="Link to the first example."
                                shape="rect" coords="0,0,118,28" />
                        <area href="example2.html"
                                alt="Link to the second example"
                                shape="rect" coords="184,0,276,28" />
                </map>
It's as you say, it uses "name" (not "id", as in anchors), and no # sign in the "usemap".

Quote:
Anyway, after removing the pound sign my test ePub passed epubcheck and worked in Readium, but not in ADE.
I haven't been able to make even simple image links (<a ...><img .../></a>) work in ADE.
Jellby is online now   Reply With Quote