openlayers/openlayers — pull request #733 by tschaub (2012-10-25 18:18:02+00:00)
Title: Filter tweaks

In looking at the filter format for #729, a couple changes stood out.

[First](e6399a2), instead of the repeated check for FID filters, we can allow writer functions to return a document fragment. Currently, each writer function can only generate a single node. I think it results in less awkward code to allow writers to generate multiple nodes to be appended at once. For compatibility with IE's ActiveX XML implementation, a common `createDocumentFragment` method is added to the base XML format.

[Second](9e21911), this is minor, but the `writeNode` method already appends child to parent, so the second call to `appendChild` is not necessary.