Wendat 2025-05-12 to 2025-05-16
to : Martin Holmes
Minutes: 125
Over the weekend, continued working on getting the MSS rendering to generate valid HTML. Since in this
project I’m now using a nightly build of the VNU validator, I discovered a number of new issues that the
validator catches, which I wasn’t aware were problems, including the fact that we can no longer use the
<meta http-equiv="Content-Type">
element for the charset. By the end of the weekend
I was down to one set of problems: the presence of nested <pb>
elements (which turn
into <hr>
+ <div>
in the output) inside other elements which
are not block elements in the output. I first attacked this by trying to split the outer parent elements,
but that’s complicated and unlikely to be robust, so in the end, on Monday, I decided to try a simpler
approach where <pb>
elements are always output as spans, but with display: block;
in the CSS, and a top border to replace the <hr>
. That wasn’t simple, because the
output from a <pb>
element was actually a large collection of <div>
elements ultimately inherited from my facsViewer code, but after converting everything to <span>
s
and rewriting a lot of CSS and JS, it seemed to work OK, and we got functional output. More to do, though.