-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty title change rendering of siblings #181
Comments
@alfsb I wrote a test for this in I've tried |
If I understand this correctly, the issue is that a valid self-closing XML/XHTML tag is not a valid HTML tag and as browsers render the PhD-generated pages as HTML, the browsers decide where to close these invalid HTML tags (probably before closing the self-closing tags' parent tags). If that is so, the easiest fix for PhD would be to render the non-HTML self-closing tags as pairs of opening-closing tags. |
The fix may resides on saving the final HTML files with |
Also, this error is not detected by the test. As you said, this is basically a rendering issue on browsers, so it does not shows in saved files. |
I'm about to merge an fixup that may start including empty
<title>
s in manual, in an effort to translations can be build able for more time, particully at times thatdoc-en
is being heavy updated.The fixup
<title></title><simpara>%failed xi:xinclude%</simpara>
(empty title) is saved on.manual.xml
as:and is rendered by
php phd/render.php --format bigxhtml
as:Instead of:
In other words, empty
<title>
causes their siblings to be rendered inside the title, instead of around it. I'm worried that this can swallows entire sections inside titles. In the meanwhile, and to workaround this, I'm placing some placeholder texts in fixup titles, but these ends rendered in manual.The text was updated successfully, but these errors were encountered: