With standard Lynx, pressing \ to view the source of XHTML files sent as
application/xhtml+xml asks you to download the page. The attached patch
makes it show the plain-text source as with text/html files.
--- lynx2-8-9/src/HTInit.c.old 2014-02-14 08:00:16.000000000 -0500
+++ lynx2-8-9/src/HTInit.c 2017-05-11 21:20:56.153574573 -0400
@@ -179,6 +179,7 @@
* text/html
*/
SET_INTERNL("application/xhtml+xml", "www/present", HTMLPresent, 1.0);
+ SET_INTERNL("application/xhtml+xml", "www/source", HTPlainPresent, 1.0);
SET_INTERNL("text/css", "www/present", HTPlainPresent, 1.0);
SET_INTERNL("text/html", "www/present", HTMLPresent, 1.0);
SET_INTERNL("text/plain", "www/present", HTPlainPresent, 1.0);
_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev