[fusion-trac] #312: decode xml string before rendering attribute in www\fusion\widgets\SelectionPanel.js

Fusion trac_fusion at osgeo.org
Tue Nov 3 13:41:00 EST 2009


#312: decode xml string before rendering attribute in
www\fusion\widgets\SelectionPanel.js
--------------------------+-------------------------------------------------
   Reporter:  poulet1212  |       Owner:  madair
       Type:  defect      |      Status:  new   
   Priority:  P2          |   Milestone:  Future
  Component:  Widgets     |     Version:  1.1.1 
   Severity:  Major       |    Keywords:        
External_id:              |       State:  New   
    Browser:  All         |          Os:  All   
--------------------------+-------------------------------------------------
 SelectionPanel?.js (Version is 2.1 beta): in the renderFeature function,
 at line 403, the instruction:

 td.innerHTML = layerObj.getElementValue(featureIdx, i);

 outputs the requested attribute values for a selection.

 If a value contains html tags such as links, it won't be rendered as html
 but as simple text because the html tags are not decoded from the xml
 string. for example a "&lt;" should be decoded as "<" before it is passed
 to innerHTML.

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/312>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list