Created
June 2, 2010 16:50
-
-
Save tmcw/422655 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: lib/OpenLayers/Format/GML/Base.js | |
| =================================================================== | |
| --- lib/OpenLayers/Format/GML/Base.js (revision 10367) | |
| +++ lib/OpenLayers/Format/GML/Base.js (working copy) | |
| @@ -346,7 +346,8 @@ | |
| // Assume attribute elements have one child node and that the child | |
| // is a text node. Otherwise assume it is a geometry node. | |
| if(node.childNodes.length == 0 || | |
| - (node.childNodes.length == 1 && node.firstChild.nodeType == 3)) { | |
| + (node.childNodes.length == 1 && node.firstChild.nodeType == 3) | | |
| + (node.childNodes.length == 1 && node.firstChild.nodeType == 4)) { | |
| if(this.extractAttributes) { | |
| name = "_attribute"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment