<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On 11 Nov 2016, at 20:40, Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" class="">andreasplesch@gmail.com</a>> wrote:<br class=""><div><blockquote type="cite" class="">On 11 Nov 2016, at 20:40, Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" class="">andreasplesch@gmail.com</a>> wrote:</blockquote><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><span class="" style="float: none; display: inline !important;">On Fri, Nov 11, 2016 at 1:27 PM, Yves Piguet </span><span dir="ltr" class=""><<a href="mailto:yves.piguet@gmail.com" target="_blank" class="">yves.piguet@gmail.com</a>></span><span class="" style="float: none; display: inline !important;"> </span><span class="" style="float: none; display: inline !important;">wrote:</span><br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">Sorry if this has already been discussed. Couldn't you define a namespace-like prefix for all elements, such as "x3d:"? Maybe optional for elements which don't cause a compatibility problem with element tag names already defined for other purposes.<br class=""></blockquote><div class=""><br class=""></div><div class="">Yes, that would be a solution and html5 custom elements need to have such prefix with a minus instead of a colon. But since script is the only element which is affected, there is a desire to avoid that in order to stay x3d spec. conforming.</div></div></blockquote><div><br class=""></div>But it wouldn't be a custom element, so one shouldn't have a hyphen in a standard x3d tag. Or if you consider x3d in html5 as a custom application, you must have hyphens everywhere.<br class=""><br class=""><blockquote type="cite" class=""><div class=""><blockquote class="gmail_quote" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">In HTML5, namespaces don't exist (see e.g. <<a href="https://dev.w3.org/html5/spec-LC/syntax.html#elements-0" rel="noreferrer" target="_blank" class="">https://dev.w3.org/html5/<wbr class="">spec-LC/syntax.html#elements-0</a><wbr class="">>): the actual tag name of X3D script elements would be "x3d:script". Script source code should be put in cdata fragments <<a href="https://dev.w3.org/html5/spec-LC/syntax.html#cdata-sections" rel="noreferrer" target="_blank" class="">https://dev.w3.org/html5/<wbr class="">spec-LC/syntax.html#cdata-<wbr class="">sections</a>>.<br class=""></blockquote><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">No,  in html5 CDATA sections are only used in 'foreign content', see <a href="https://dev.w3.org/html5/spec-LC/syntax.html#cdata-sections" class="">https://dev.w3.org/html5/spec-LC/syntax.html#cdata-sections</a><span class="Apple-converted-space"> </span>:</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">3. CDATA sections can only be used in foreign content (MathML or SVG) <br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">and <script> is considered raw text content.</div></div></blockquote><div><br class=""></div><div>I mean it would be foreign content if x3d's script element is made distinct with a different name, wouldn't it? Then you can keep child elements for fields.</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">In xhtml, one should use CDATA for script source code.</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><blockquote class="gmail_quote" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">In XHTML, a valid xml namespace would be declared and used.<br class=""></blockquote><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">For xhtml, there is no problem if the type attribute of the script node is for example 'application/vrmlscript' .</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">What do you think about the fields attribute proposal for x3d scripts nodes ?</div></div></blockquote><br class=""></div><div>I don't have much experience with the xml encoding. In principle I'd rather keep everything as close to v3 as possible.</div><br class=""><div class="">Yves</div><div class=""><br class=""></div></body></html>