hasAttribute in Web.DOM.Element fails
Closed this issue · 1 comments
IfSixWasNine commented
The cause is that the return type has not an effectful implementation.
Instead of ...
exports.hasAttribute = function(name) {
return function (element) {
return element.hasAttribute(name);
};
};
... the implementation should be ...
exports.hasAttribute = function(name) {
return function (element) {
return function () {
return element.hasAttribute(name);
};
};
};
garyb commented
Thanks for the report!