-
Notifications
You must be signed in to change notification settings - Fork 24
hasAttribute in Web.DOM.Element fails #22
Copy link
Copy link
Closed
Labels
good first issueFirst-time contributors who are looking to help should work on these issues.First-time contributors who are looking to help should work on these issues.type: bugSomething that should function correctly isn't.Something that should function correctly isn't.
Metadata
Metadata
Assignees
Labels
good first issueFirst-time contributors who are looking to help should work on these issues.First-time contributors who are looking to help should work on these issues.type: bugSomething that should function correctly isn't.Something that should function correctly isn't.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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);
};
};
};