[x3d-public] agreement on number of \\\\\\\\ in Java???? X3DJSAIL.

Michalis Kamburelis michalis.kambi at gmail.com
Sun Jul 30 00:01:55 PDT 2017


2017-07-30 7:06 GMT+02:00 John Carlson <yottzumm at gmail.com>:
> Michalis, can you test on X3DOM and Cobweb as well?   Thanks!
>

Sure :)

1. Cobweb: Same as other browsers: backslashes in SFString are *not*
used for escaping, backslashes in MFString *are* used for escaping.
Screenshots attached, X3D and HTML code for testing on
https://github.com/michaliskambi/x3d-tests/tree/master/backslashes_in_xml_encoding
.

2. X3DOM: I played a bit with X3DOM test, but without the support for
<Script> node, for now I have no idea how to force X3DOM to parse an
SFString in X3D XML and then display it.

  Note that the <Text> node's "string" field is MFString, not
SFString. I can probably use JavaScript (without the <Script> node) to
just pass a string to Text.string in X3DOM, but that would not test
"how X3DOM parses SFString in X3D XML".

  The testcase I used (mentioned in
http://web3d.org/pipermail/x3d-public_web3d.org/2017-May/006690.html )
is available on
https://github.com/michaliskambi/x3d-tests/tree/master/backslashes_in_xml_encoding
. If you have an idea how to adapt it to test X3DOM, please do (and
you can submit it to me as pull request to
https://github.com/michaliskambi/x3d-tests , of course :)

Regards,
Michalis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cobweb_mfstring.png
Type: image/png
Size: 42150 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170730/c3b0e77d/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cobweb_sfstring.png
Type: image/png
Size: 44078 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170730/c3b0e77d/attachment-0003.png>


More information about the x3d-public mailing list