|
|
|
[
Permlink
| « Hide
]
Sarah Allen - 26/Apr/07 03:22 PM
Fixed with change to OL trunk, svn revision 4462
Release Notes:
XML serialization has been updated to escape newlines in attribute values. Details: W3 character escaping says that the canonical form of CR uses an escape code. Server code that we're writing appears to support this. http://www.w3.org/TR/1999/WD-xml-c14n-19991109.html#charescaping NB that the linefeed or carriage return would be a reasonable choice here, but I went with carriage return since that best matches the definition of Javascript charCode 13. re-opening: as we discussed, we should probably escape LF and maybe TAB
Ran the following in 3.4 and 4.0.2:
<canvas debug="true"> <simplelayout axis="y"/> <dataset name="myData"> <myXML> <name>Homer Jay Simpson </name> </myXML> </dataset> <text id="foo" datapath="myData:/myXML/name/text()"/> <script> Debug.write(foo.datapath); </script> </canvas> The result of 3.4 shows that CR is escaped, but LF is not: «LzDatapath#0| <name>Homer
\n Jay
\n Simpson
\n </name>» The result of 4.0.2 shows that neither is escaped: <name>Homer\r\n Jay\r\n Simpson\r\n </name> I can't reproduce this in Legal's or 4.0.3. 3.4.x is closed.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||