openlayers/openlayers — pull request #445 by candeira (2012-04-29 12:00:40+00:00)
Title: Fix github issue 267, GPX: handling of desc attribute.

Original description of the issue:

> In a GPX file, the description element is called 'desc', and the Format read creates a feature attribute 'desc'. However, write() looks for feature.attributes.description, which of course doesn't exist. The tests are also converting feature.attributes.description to desc, so it seems this is deliberate. Is this to make it compatible with KML? If so, it would surely be better to look for feature.attributes.desc and feature.attributes.description.

This fix includes a roundtrip test that an xml is properly read into an attribute .desc, and then properly written into a and read again.

A second test checks that an explicity written .description attribute will be properly written to a node, as was the previous behaviour, in order to avoid breaking existing code.