andreasplesch / x_ite_dom

link x_ite to the DOM
http://andreasplesch.github.io/x_ite_dom/index.xhtml
MIT License
6 stars 0 forks source link

html5 #16

Closed andreasplesch closed 7 years ago

andreasplesch commented 7 years ago

X3DCaseFixer approach could be used to 'normalize' x3d: in js such big map { lowercasenode: RealCaseNode, ... } but need to check browser mangling again.

andreasplesch commented 7 years ago

http://ejohn.org/blog/nodename-case-sensitivity/

In HTML5 node.nodeName is (almost) always upper case (<Transform> -> TRANSFORM)

and attributes lower case

andreasplesch commented 7 years ago

https://github.com/create3000/cobweb/blob/b5904fed897bde9e0760a08f8f7c58169aa61090/cobweb.js/cobweb/Basic/X3DBaseNode.js#L450

just add name.tolowercase ? should enable getting setField: add lowercase to _fields Array everywhere.

and for nodes just add upper case names to supported nodes ?

https://github.com/create3000/cobweb/blob/b5904fed897bde9e0760a08f8f7c58169aa61090/cobweb.js/cobweb/Configuration/SupportedNodes.js