jacshore / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
0 stars 0 forks source link

<object> causes problems with seeing IDs #226

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

As above, <object> elements seem to keep epubcheck from recognizing IDs

METHOD:

What steps will reproduce the problem?
1. I have an epub file with an <object> embedding a PDF. Before that <object>, 
I have an <a href="#tag"> with the matching id="tag" after the <object>. 
Epubcheck consistently reports "fragment identifier is not defined in 
'OEBPS/09-chapter1.xhtml".
2. This occurs regardless of what element I put the id inside of, as long as it 
is after the <object> (can be before the </object>)
3.This will also keep epubcheck from seeing duplicate IDs after the <object>

RESULT:

What happens?

EXPECTED:

I expected epubcheck to not tell me that there was an undefined fragment 
identifier

PLATFORM:

Using Epubcheck Version 3.0-RC-1 on Windows 7

ADDITIONAL INFO:

Please provide any additional information below.

Original issue reported on code.google.com by bosun....@gmail.com on 29 Nov 2012 at 11:54

GoogleCodeExporter commented 8 years ago
Hi Bosun, 
any chance you could provide a sample? That would be much appreciated. 

Original comment by markus.g...@gmail.com on 30 Nov 2012 at 12:26

GoogleCodeExporter commented 8 years ago
I'm trying to reproduce with markup like:

<p><a href="#span">See chap 2</a><object data="image.png"></object><span 
id="span">Hello</span></p>

But it passed the validation.
Can you send an example of your markup ?

Original comment by rdeltour@gmail.com on 1 Dec 2012 at 12:27

GoogleCodeExporter commented 8 years ago
Sure thing. The <a> in question is on line 13. The <object> is on line 550, and 
the id that matches the <a> is on line 724. I also have another <a> on line 14, 
with a matching id inside a <span> on line 550; I was moving that <span> around 
for testing.

Original comment by bosun....@gmail.com on 1 Dec 2012 at 12:34

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r394.

Original comment by rdeltour@gmail.com on 1 Dec 2012 at 1:19