Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linting
Browse files Browse the repository at this point in the history
zorkow committed Dec 11, 2024
1 parent 28dcb89 commit 2341623
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/dom.js
Original file line number Diff line number Diff line change
@@ -2355,11 +2355,12 @@ Element.prototype = {
},
/**
* Implementaton of Level2 Core function hasAttributes.
* @see https://www.w3.org/TR/DOM-Level-2-Core/#core-ID-NodeHasAttrs
*
* @returns {boolean} True if attribute list is not empty.
* @returns {boolean}
* True if attribute list is not empty.
* @see https://www.w3.org/TR/DOM-Level-2-Core/#core-ID-NodeHasAttrs
*/
hasAttributes: function() {
hasAttributes: function () {
return !!(this.attributes && this.attributes.length);
},
hasAttribute: function (name) {

0 comments on commit 2341623

Please sign in to comment.