From 4f22ba54bf9779226dfee4c44d5c7bcd056e5662 Mon Sep 17 00:00:00 2001
From: Rob Wu <rob@robwu.nl>
Date: Mon, 19 Jun 2017 14:11:13 +0200
Subject: [PATCH] Add getAttributeNS to domstubs for SVG example

The closePath method in src/display/svg.js relies on this.
---
 examples/node/domstubs.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/node/domstubs.js b/examples/node/domstubs.js
index ce4dc7890..6c3277e59 100644
--- a/examples/node/domstubs.js
+++ b/examples/node/domstubs.js
@@ -77,6 +77,10 @@ function DOMElement(name) {
 
 DOMElement.prototype = {
 
+  getAttributeNS: function DOMElement_getAttributeNS(NS, name) {
+    return name in this.attributes ? this.attributes[name] : null;
+  },
+
   setAttributeNS: function DOMElement_setAttributeNS(NS, name, value) {
     value = value || '';
     value = xmlEncode(value);