[OpenLayers-Trac] Re: [OpenLayers] #3462: Format/XML.js tests fail in Chromium

OpenLayers trac-20090302 at openlayers.org
Tue Aug 16 22:48:34 EDT 2011


#3462: Format/XML.js tests fail in Chromium
--------------------+-------------------------------------------------------
 Reporter:  erilem  |       Owner:              
     Type:  task    |      Status:  new         
 Priority:  major   |   Milestone:  2.11 Release
Component:  tests   |     Version:  2.11 RC2    
 Keywords:          |       State:              
--------------------+-------------------------------------------------------

Comment(by tschaub):

 Replying to [comment:4 ahocevar]:
 > The above comment misses a few words. Here is the correct version:
 > There seems to be a disagreement across the library whether to use
 createElementNS with prefix:localname as 2nd argument, or just localname.
 Both is used. The proper use of xmldom.createNode and
 document.createElementNS, which are called by Format.XML::createElementNS
 depending on which browser is used, is just localname. The API docs of
 Format.XML::createElementNS demand prefix:localname.

 I'm a bit confused by this comment.  Our createElementNS method should be
 called with a qualified name (e.g. "alias:foo").  The
 [https://developer.mozilla.org/en/DOM/document.createElementNS
 createElementNS docs] say second arg is a qualified name (example uses
 "html:div") and the [http://msdn.microsoft.com/en-
 us/library/ms757901(v=vs.85).aspx#Y87 MS docs] say name should be
 qualified for ELEMENT_NODE (see remarks section).

 I see that the GeoRSS, KML, ArcXML, and OSM formats use the default
 namespace - but I think that "foo" is still a legitimate qualified name.
 (And Google Earth demands the default namespace iirc.)

 I'm still not seeing Format/XML.html test failures.  But I'll try more
 browsers.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3462#comment:5>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list