XMLList should not include "space" Node.

Bug #1237844 reported by Tao Liang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lightspark
Confirmed
Medium
Unassigned

Bug Description

The function "void XMLList::buildFromString(const std::string& str)" will build "space" node into XMLList. I think this is not the right behavior.
The following is the code snippet:

xmlpp::Node::NodeList::const_iterator it;
 for(it=children.begin(); it!=children.end(); ++it)
  nodes.push_back(_MR(Class<XML>::getInstanceS(*it)));

From the above code, xml ContentNode which represents space or comment will be push back into nodes.
I think ContentNode should be skipped.

Antti Ajanki (aajanki)
Changed in lightspark:
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.