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?
Again, we could try to detect this, but it's hard to know how to do it
without making assumptions. What if someone did use "div" for Standard?
Then there is nothing to detect.
It starts to feel like we need to code the entire DTD and check
everything we do against it.
This is not nice indeed.
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?
JMarc