On 06/06/2013 12:21 PM, Jean-Marc Lasgouttes wrote:
06/06/2013 16:33, Richard Heck:
Here's an example of what led to this:

<p class="standard">This is a paragraph.<div class="footnote"><p
class="standard">This is a footnote.</p><p class="standard">With two
paragraphs.</p></div> Rest of paragraph.</p>

That is invalid. Whereas if you replace "p" with "div" it is fine.

Which <p>? The inner one?

Yes. No "p" inside "p". Most browsers will allow it, but when Firefox is in a strict XHTML mode, it simply refuses to load the document. And you have to be in that mode, in Firefox, at least, in order to use MathML. I suspect that the ePub converters would reject it as well.

For what it's worth, really solving the problem of footnotes inside
headings (div not allowed inside h2, e.g.) may require enough machinery
to do this too. The div paragraphs inside the footnote (which now has to
be treated as span) won't be permitted either.

What is the difference between div and span in in this case?

Span is more or less allowed everywhere. Of course, span is by default inline. But you can get it to act like a div by setting display:block in CSS. Cheating, no doubt.

Rethinking how footnotes should be handled is one aspect of the summer's GSoC work.

Richard

Reply via email to