wsdl-viewer icon indicating copy to clipboard operation
wsdl-viewer copied to clipboard

Xhtml fixes

Open capncodewash opened this issue 12 years ago • 3 comments

Hi there, This branch contains a fixes to get the output from wsdl-viewer to validate as XHTML, and to fix some recursion issues I was having with the output.

capncodewash avatar Feb 25 '13 11:02 capncodewash

Hey, first of all, thanks for the input!

The decision for using inline JQuery was made because we wanted the document formatting functioning even without an active internet connection. Do you have any suggestions how we could improve based on that principle?

tohvu avatar Feb 25 '13 11:02 tohvu

Yeah, that makes sense.

I did try a variety of things to get it to validate using inline JS (including wrapping the CDATA sections in JS comments, see here: https://github.com/capncodewash/wsdl-viewer/commit/f05e9a86e615841fec2b26b0c262e13673742fd4 ), however nothing seemed to allow it to validate.

It seems that inline JavaScript is inherently breaky in XHTML. Is there any particular requirement for the stylesheet to generate XHTML, or would the HTML5 doctype be a possibility?

capncodewash avatar Feb 25 '13 12:02 capncodewash

Right now I can't think of anything against switching to HTML5 doctype.

tohvu avatar Feb 25 '13 13:02 tohvu