html5 support for "export" links in trac wiki
|Reported by:||Owned by:|
|Severity:||normal||Keywords:||html5 export wiki mimeview|
|Cc:||Ryan J Ollos||Branch:|
I am attempting to link from my wiki to web documentation within the source (git) repository. This works as expected if the documents are xhtml, but not if the file is html5.
For example, adding the following code to the wiki
[export:path/to/index.html] creates a link to that file within the git repository which is displayed as expected when the html file has the following header:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
However, an error occurs when the html document has a html5 header:
<!DOCTYPE html> <html lang="en"> <head>
The error message (within the browser) is browser dependant, however, the error message printed in firefox:
"XML Parsing Error: mismatched tag. Expected: </link>...."
suggests that trac may be attempting the parse the html5 document as xml?
Note that it is necessary to set
[browser] render_unsafe_content = yes in order to enable rendering of html documents in this way.