Quote:
Originally Posted by bookman156
I corrected my post, managed to leave out the self-closing tag. Sorry about that.
|
FYI,
The self-closed version of your anchor tag is perfectly valid xml. That said, since the anchor tag is not technically a void tag (a tag that doesn't allow contents) some tool chains especially those html based will complain bitterly when they see such things. Sigil uses google's gumbo parser and serializes to polyglot xhtml/html. This means it serializes tags to versions that are correct in xml, xhtml, and html. In other words it only self-closes truly void tags, not just tags that are empty in this particular instance. For the anchor tag this means removing the self-close and adding a closing tag, making it valid no matter the toolchain used.
This happens in reverse as well. Kindlegen complained about svg image tags that are void tags and but are valid in xml if it has a closing tag but the closing tag made kindlegen complain. Their toolchain wanted the self-closed version on the image tag.
So Sigil will automatically serialize your code to try and make a version that is valid in xml, xhtml, and html5 all at the same time (ie. polyglot).
Hope this explains things.
KevinH