<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="FreeSerif">From discussion here in March of last year, I
am attempting to get Xiphos to operate in a proper xhtml mode,
rather than its apparent heretofore html mode, because I honestly
wasn't aware that WebKit could operate other than xhtml in the
first place. The specific goal is to leave self-closing
<div> tags alone, as delivered by the Sword engine, rather
than having to obliterate them in a post-delivery hack. To this
end, using suggestions from Nathan Phillip Brink at the time, I've
made this change to the opening stanza of Xiphos' main display
widget:<br>
<br>
</font><tt>#define HTML_START \</tt><tt><br>
</tt><tt>- "<html><head><meta
http-equiv=\"content-type\" content=\"text/html;
charset=utf-8\"> \</tt><tt><br>
</tt><tt>+ "<?xml version=\"1.0\"?> \</tt><tt><br>
</tt><tt>+<!DOCTYPE html> \</tt><tt><br>
</tt><tt>+<html xmlns=\<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xhtml\">"http://www.w3.org/1999/xhtml\"</a>> \</tt><tt><br>
</tt><tt>+<head><meta http-equiv=\"content-type\"
content=\"application/xhtml+xml; charset=utf-8\"> \</tt><font
face="FreeSerif"><br>
<br>
Notable:<br>
- begins with <?xml...> line<br>
- includes DOCTYPE (either html or xhtml) (also tried leaving this
off entirely, no diff)<br>
- adds namespace to <html><br>
- changes content type to application/xhtml+xml (also tried just
xhtml, no diff)<br>
<br>
Result so far is an all around no-joy. I am evidently still
getting WebKit behavior in HTML mode because the self-closing
<div> leads to my .introMaterial format/color change
bleeding through to the end of the chapter, as most clearly seen
in the (technically defunct, but I still have & use it)
ESV2011 module, in every book's 1:1. If I leave the post-delivery
hack in place, the self-closing <div> is eliminated
entirely, and the .introMaterial section is properly highlighted.<br>
<br>
Can anyone offer any further suggestions on how to induce the
right sort of behavior?<br>
</font>
</body>
</html>