You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the two should be removed. Most likely the first one, because getAttributeNS's implementation just returns this.attributes[i], and that should not be encoded.
The text was updated successfully, but these errors were encountered:
I think that it's better to not do that. We use a very limited subset of the DOM, so it is relatively easy to implement and optimize the stubs for our use case; jsdom seems overkill for us. Also, our example currently does not have any external module dependencies, which simplifies testing (though this is a very minor point).
pdf.js/examples/node/domstubs.js
Lines 84 to 87 in 9bed695
pdf.js/examples/node/domstubs.js
Line 105 in 9bed695
One of the two should be removed. Most likely the first one, because
getAttributeNS
's implementation just returnsthis.attributes[i]
, and that should not be encoded.The text was updated successfully, but these errors were encountered: