On Tue, Dec 23, 2014 at 3:29 PM, Yuri Khan <[email protected]> wrote: > On Tue, Dec 23, 2014 at 4:37 PM, Ivan Shmakov <[email protected]> wrote: >> >>> <a >> href="79/lily-83620d4b.ly"><p>‘<tt>accidental-ancient.ly</tt>’ >> >>> </a> <p> >> >>> <a href="79/lily-83620d4b.ly"> >> >>> <img align="middle" >> >>> border="0" >> >>> src="79/lily-83620d4b.png" >> >>> alt="[image of music]"> >> >>> </a> >> >>> </p></p> >> >> >> In this snippet, I count 2 instances of improper tag nesting, >> >> I count just a single one, but yes, that second </p> surely >> invalidates the fragment. > > <a><p></a> is improper* nesting in my book. All paired tags SHOULD** > be explicitly closed.
I think the problem that shows up there is the coding in Html.pm. It does not keep starting and closing tags together. (The most easy way to do that is to use functions where you add the starting tag on entry and the closing tag on exit.)
