<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <script type="text/javascript">
            <!--
            var _feature=new OpenLayers.Feature.Vector();
            var _geom=new OpenLayers.Geometry.Point(10,10);
            _feature.geometry=_geom;
            _feature.attributes['dummy']=null;
            var _writer=new OpenLayers.Format.GML();
            var _xml=_writer.write(_feature);
            alert(_xml);
            //-->
        </script>
        <h1>Bug in XML.js</h1>
        <p>Line 247 in XML.js oder OpenLayers.js 766</p>
        <p>createTextNode:function(text){var node;if(this.xmldom){node=this.xmldom.createTextNode(text);}else{node=document.createTextNode(text);</p>
        <p>In IE8 this.xmldom.createTextNode(text) fails as text is null !!</p>
        <p>Workaround: insert if(text==null) text='';</p>
    </body>
</html>