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
Add a single argument version of the method ContentNode#isAttr. The purpose of this method is to determine whether an attribute is set, regardless of the value. For example:
document.isAttr("sectnums");
The method will also need to accept a boolean flag to control whether to consider the inherited attribute (which is true by default).
node.isAttr("target", false);
If this method conflicts with other overloaded methods, we could consider changing the prefix to has.
document.hasAttr("sectnums")
This may actually be a better approach. This is consistent with the DOM (which uses the method name hasAttribute).
The text was updated successfully, but these errors were encountered:
Add a single argument version of the method
ContentNode#isAttr
. The purpose of this method is to determine whether an attribute is set, regardless of the value. For example:The method will also need to accept a boolean flag to control whether to consider the inherited attribute (which is true by default).
If this method conflicts with other overloaded methods, we could consider changing the prefix to
has
.This may actually be a better approach. This is consistent with the DOM (which uses the method name hasAttribute).
The text was updated successfully, but these errors were encountered: