waldyrious / rst-playground

Browser-based reStructuredText playground, built on Pyodide and docutils.
https://waldyrious.github.io/rst-playground
ISC License
1 stars 4 forks source link

Convert index.html to XHTML #8

Closed waldyrious closed 1 year ago

waldyrious commented 1 year ago

I had initially created the page as a XHTML document, but had to go back to basic HTML because the iframe injection interfered with that. Once the conversion code is working properly, I'd like to investigate going back to XHTML, just to have an extra layer of code structure checking (i.e. the browser itself will warn if the webpage is malformed).

The change would be simply renaming index.html to index.xhtml, and changing <html> to <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> within it.

Relevant code: https://github.com/waldyrious/rst-playground/blob/f8698e0d0c33e1bfe324e1e126884e388bacf6d3/index.html#L2

not-my-profile commented 1 year ago

The browser is complaining because of the missing doctype in the iframe ... the <!doctype html> works just fine.