Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

marking default nodes specified = false

  • Loading branch information...
commit f878752ca59a2a175c962135d4be9e98036e2973 1 parent bdd9ccd
Elijah Insua tmpvar authored

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. +7 7 test/level2/core/files/staffNS.xml.js
14 test/level2/core/files/staffNS.xml.js
@@ -47,21 +47,21 @@ exports.staffNS = function() {
47 47
48 48 var defaultAttributes = new dom.NamedNodeMap(doc);
49 49 var entElement = doc.createElementNS("http://www.w3.org/2000/xmlns/","entElement");
50   - entElement.setAttribute("attr1", "Attr");
51   - entElement.setAttribute("domestic", "MALE");
  50 + entElement.setAttribute("attr1", "Attr").specified = false;
  51 + entElement.setAttribute("domestic", "MALE").specified = false;
52 52 defaultAttributes.setNamedItem(entElement);
53 53
54 54 var defaultAddress = doc.createElement("address");
55   - defaultAddress.setAttribute("street", "Yes");
  55 + defaultAddress.setAttribute("street", "Yes").specified = false;
56 56 defaultAttributes.setNamedItem(defaultAddress);
57 57
58 58 var defaultEmpAddress = doc.createElementNS("http://www.nist.gov", 'emp:address');
59   - defaultEmpAddress.setAttributeNS("http://www.nist.gov", "emp:district", "DISTRICT");
60   - defaultEmpAddress.setAttributeNS("http://www.nist.gov", "emp:local1", "FALSE");
  59 + defaultEmpAddress.setAttributeNS("http://www.nist.gov", "emp:district", "DISTRICT").specified = false;
  60 + defaultEmpAddress.setAttributeNS("http://www.nist.gov", "emp:local1", "FALSE").specified = false;
61 61 defaultAttributes.setNamedItem(defaultEmpAddress);
62 62
63 63 var defaultEmpEmployee = doc.createElementNS("http://www.nist.gov", 'emp:employee');
64   - defaultEmpEmployee.setAttributeNS(null, 'defaultAttr', 'defaultVal');
  64 + defaultEmpEmployee.setAttributeNS(null, 'defaultAttr', 'defaultVal').specified = false;
65 65 defaultAttributes.setNamedItem(defaultEmpEmployee);
66 66
67 67 doc.doctype = new dom.DocumentType(doc, "staff", entities, notations, defaultAttributes);
@@ -189,7 +189,7 @@ exports.staffNS = function() {
189 189
190 190 employee.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:emp", "http://www.nist.gov");
191 191 employee.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:nm", "http://www.altavista.com");
192   - employee.setAttributeNS(null, 'defaultAttr', 'defaultVal');
  192 + employee.setAttributeNS(null, 'defaultAttr', 'defaultVal').specified = false;
193 193
194 194 id.appendChild(doc.createTextNode("EMP0004"));
195 195 salary.appendChild(doc.createTextNode("95,000"));

0 comments on commit f878752

Please sign in to comment.
Something went wrong with that request. Please try again.