Introduce unspecification for undefined references in VC builder
Change-Id: I0475ca57db6e45d2d1fcc203ca19d3e577e1bbc5
diff --git a/dev/js/spec/vcSpec.js b/dev/js/spec/vcSpec.js
index 1b1ea01..ef033ab 100644
--- a/dev/js/spec/vcSpec.js
+++ b/dev/js/spec/vcSpec.js
@@ -855,6 +855,7 @@
expect(vcE.firstChild.firstChild.textContent).toEqual("referTo");
expect(vcE.firstChild.children[1].getAttribute("data-type")).toEqual("string");
expect(vcE.firstChild.children.length).toEqual(3);
+ expect(vcE.firstChild.children[1].classList.contains("unspecified")).toBeTruthy();
});
});
diff --git a/dev/js/src/vc/docgroupref.js b/dev/js/src/vc/docgroupref.js
index 905faf8..7d3ecea 100644
--- a/dev/js/src/vc/docgroupref.js
+++ b/dev/js/src/vc/docgroupref.js
@@ -76,6 +76,7 @@
}
else {
this._refE.addT(loc.EMPTY);
+ this._refE.classList.add('unspecified');
};
// Change value