[issue12129] Document Object Model API - validation

2016-12-23 Thread Pradeep
Pradeep added the comment: xml minidom.py needs extra validation in setAttributes for certain special characters depending on the attribute name. Attribute values cannot have special characters like <,> and cant be nested as described in the example below element01 = doc.createElement('element

[issue12129] Document Object Model API - validation

2016-01-15 Thread Martin Panter
Martin Panter added the comment: My limited understanding is that xml.dom and minidom are supposed to implement particular interfaces. So do these DOM interfaces specify if this validation should be done? If so, this would be a bug. Or is it just a question of whether Python should do extra va

[issue12129] Document Object Model API - validation

2013-07-27 Thread John Cassidy
John Cassidy added the comment: I added the line print(str(doc)) after the call to getDomImplementation and verified that the errors that I'm seeing are coming from the xml.dom.minidom implemenation of xml.dom. Checking minidom.py I did not see any validation on the tagName that gets passed t

[issue12129] Document Object Model API - validation

2011-06-02 Thread Kyle Keating
Kyle Keating added the comment: oops, the first xml element in the output should read "" not "" just a typo! don't get confused! -- ___ Python tracker ___ ___

[issue12129] Document Object Model API - validation

2011-06-02 Thread Kyle Keating
Kyle Keating added the comment: This looks to break pretty good... I did confirm this on 3.0, I'm guessing 3.2 is the same. import sys import xml.dom doc = xml.dom.getDOMImplementation().createDocument(None, 'xml', None) doc.firstChild.appendChild(doc.createElement('element00')) element01 =

[issue12129] Document Object Model API - validation

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect you are right, but do not know the rules, and have never used the module. There is no particular person maintaining xml.dom.X at present. Could you please fill in the ... after the import to give a complete minimal example that fails? Someone could

[issue12129] Document Object Model API - validation

2011-05-20 Thread Kyle Keating
New submission from Kyle Keating : I was doing some tests on using this library and I noticed xml elements and attribute names could be created with mal-formed xml because special characters which can break validation are not cleaned or converted from their literal forms. Only the attribute va