Skip to content

hasAttribute in Web.DOM.Element fails #22

Closed
@IfSixWasNine

Description

@IfSixWasNine

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);
};
};
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueFirst-time contributors who are looking to help should work on these issues.type: bugSomething that should function correctly isn't.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions