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

Malformed xhtml on "Related Pages" (Origin: bugzilla #666047) #4500

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version unspecified on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2011-12-13 00:53:56 +0000, Bill wrote:

Created attachment 203311
Tar of a directory with all the inputs needed to generate the problem.

The problem is malformed xhtml in a subpage.

To demo use doxygen

  1. Execute
  2. View html/_m_i_m_i_r__components_page.xhtml in a web browser.

Error as it appears for me in the browser (firefox):

XML Parsing Error: mismatched tag. Expected: </p>.
Location: file:///home/docgen/MIMIR-doc/other/html/_m_i_m_i_r__components_page.xhtml
Line Number 178, Column 3:
</div></div><!-- contents -->
  1. My stopgap solution is to apply the following sed script to the file:
    '/<.div><.div>/d; s!!


Note: When the page is corrected the embedded PDF does not show in the browser window, externally. This is NOT a problem. It works correctly when view on a windows box.

On 2011-12-15 21:10:45 +0000, Dimitri van Heesch wrote:

The problem seems to be related to (the content in) the \htmlonly..\endhtmlonly sections it seems. If I remove these sections the results are valid.

On 2011-12-16 17:43:34 +0000, Bill wrote:

(In reply to comment # 1)

The problem seems to be related to (the content in) the \htmlonly..\endhtmlonly
sections it seems. If I remove these sections the results are valid.

Please look at the example more closely.
When the \htmlonly..\endhtmlonly are removed, DOXYGEN generates the xhtml:

Your browser does not support iframes. </iframe>

The "does not support" is clearly incorrect, since after fixing the xhtml iframe operates in Firefox and IE9 function.

Why is Doxygen telling me that my browser does not support iframes.
Doxygen has not idea what browser I am using.

On 2011-12-16 22:02:27 +0000, Dimitri van Heesch wrote:

When I said remove \htmlonly..\endhtmlonly I meant also the content within the block. I'm not saying there is no bug, just that the bug is caused by the html only block in combination with


If I use:


<iframe name="Layout Parameter Referencs in Code" src="LayoutParms.html" width="

Your browser does not support iframes.

</iframe> \endhtmlonly



<iframe src="Notes.pdf" width="100%" height="1600" >

Your browser does not support iframes.



It also works (but the name attribute of the first iframe is not valid).

On 2011-12-25 23:06:19 +0000, Dimitri van Heesch wrote:

The problem was that

was ignored by the parser, causing the \htmlonly section to be part of the preceding paragraph, and doxygen inserting an extra

after the \endhtmlonly.

Should be fixed in the next subversion update.

On 2012-02-25 15:37:23 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.0. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment