View Single Post
Old 07-15-2016, 04:36 PM   #27
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by KevinH View Post
As it turns out according to the xhtml 1.1 dtd / schema nested anchors are not allowed in xhtml 1.1 (if you choose strict vs tr it should be caught by a validator).

That said, most browsers did display nested anchors as expected, so people still use them but techically should not.
Thanks for the info.

Quote:
Originally Posted by roger64 View Post
Code:
.../...<sup></sup>.../...
Really? When I meet this, I usually suppress it.
I agree, in most cases an empty tag like that is absolutely useless. I typically strip those things out as one of the initial cleaning steps.

In this case, it is important to see exactly how Sigil decided to alter the code.

In the Before, the footnote number is superscript. After Sigil 0.9.6 does its magic, the number is no longer superscript.

Before: <p><a id="bookmark1"><sup><a href="#footnote1">1</a></sup></a></p>

After: <p><a id="bookmark1"><sup></sup></a><a href="#footnote1">1</a></p>

I never really noticed this too much since Sigil never complained before + I have a set of Regex I have been using for years and years to clean/condense a bunch of the Finereader cruft. This Regex is one of them:

Search: <p><a id="[^"]+"><sup><a href="[^"]+">([0-9]+)</a></sup></a></p>\s+<p>
Replace: <p><sup>\1</sup>

Quote:
Originally Posted by theducks View Post
I thought it was <sub> tags that brought on hunger


For those lurkers
A 'Sub" (or hoagie) is a Sandwich made on roll
Always great when you need to add an explanatory note to your jokes.
Tex2002ans is offline