{"action":"closed","issue":{"url":"https://api.github.com/repos/mathjax/MathJax-node/issues/180","repository_url":"https://api.github.com/repos/mathjax/MathJax-node","labels_url":"https://api.github.com/repos/mathjax/MathJax-node/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/mathjax/MathJax-node/issues/180/comments","events_url":"https://api.github.com/repos/mathjax/MathJax-node/issues/180/events","html_url":"https://github.com/mathjax/MathJax-node/issues/180","id":135107579,"number":180,"title":"page2html rewrites self-closing tags","user":{"login":"a3nm","id":843551,"avatar_url":"https://avatars.githubusercontent.com/u/843551?v=3","gravatar_id":"","url":"https://api.github.com/users/a3nm","html_url":"https://github.com/a3nm","followers_url":"https://api.github.com/users/a3nm/followers","following_url":"https://api.github.com/users/a3nm/following{/other_user}","gists_url":"https://api.github.com/users/a3nm/gists{/gist_id}","starred_url":"https://api.github.com/users/a3nm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a3nm/subscriptions","organizations_url":"https://api.github.com/users/a3nm/orgs","repos_url":"https://api.github.com/users/a3nm/repos","events_url":"https://api.github.com/users/a3nm/events{/privacy}","received_events_url":"https://api.github.com/users/a3nm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mathjax/MathJax-node/labels/Upstream","name":"Upstream","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-20T18:18:50Z","updated_at":"2016-02-22T08:26:24Z","closed_at":"2016-02-22T08:26:24Z","body":"Consider the following HTML document:\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html dir=\"ltr\" xml:lang=\"en-US\" lang=\"en-US\" xmlns=\"http://www.w3.org/1999/xhtml\">\r\n  <head>\r\n    <title>blah</title>\r\n    <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\r\n  </head>\r\n  <body>\r\n  </body>\r\n</html>\r\n```\r\n\r\nWhen piping it to page2html, the following output is produced:\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html dir=\"ltr\" xml:lang=\"en-US\" lang=\"en-US\" xmlns=\"http://www.w3.org/1999/xhtml\"><head>\r\n    <title>blah</title>\r\n    <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\">\r\n  <style id=\"MathJax_CHTML_styles\">undefined</style></head>\r\n  <body>\r\n  \r\n\r\n\r\n</body></html>\r\n```\r\n\r\nI don't like the fact that the self-closing tag `meta` tag was rewritten to omit the ending '/', as I am trying to produce HTML which is also valid XML. I think it would be better if page2html left self-closing tags as is, at least on parts of the HTML that it does not touch. \r\n"}}