|
From: sfeam <sf...@us...> - 2017-01-31 04:23:19
|
On Monday, 30 January 2017 11:55:07 PM pl...@pi... wrote: > Hi, > > in doing some standards checking I found the leading line in gnuplots > SVG 'mousing' output has errors. > > <script language="javaScript" TYPE="text/javascript" > > > xml requires lower case. so 'type' not 'TYPE' > > also language should be "text/javascript" too and now is js by default > so not required by current std. , though specifying may be good to > cover all bases. > > Unless this has been carefully crafted to work on a maximum number of > browsers, it would presumably be best to stick as closely as possible to > standards. The line you quote is only output if the terminal option "standalone" is selected, right? If you generate for display inside a web page you get a line like this instead: <script type="text/javascript" xlink:href="./gnuplot_svg.js"/> Did your standards check catch anything else? Is there an on-line validation tool that is reasonably current (the ones I know from a few years ago have all gone defunct). Anyhow I'm confused. If you open the file in a web browser isn't the line being read according to HTML standards (case insensitive) rather than xml standards (case sensitive)? I don't mind changing it but I would like to understand better what the target standard is. Ethan |