I have written a patch that modifies the output of jsmath drupal module a bit to make it XHTML-compliant. In particular, the code generated should pass the test in http://validator.w3.org/.

The patch:

  • Adds 'type="text/javascript"' for a script tag as required by the XHTML standard;
  • Removes the document.write() part which seems to be standard compliant but not parsed correctly and thus verified by the validator.
CommentFileSizeAuthor
jsmath_xhtml.patch1.13 KBvyvee

Comments

gustav’s picture

Status: Needs review » Fixed

Thanks for this patch. I have committed it to the HEAD branch in CVS

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.