Skip to content

Commit

Permalink
fix: use Document replace HTMLDocument (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
1wkk authored Jul 25, 2023
1 parent feb4cc7 commit be65935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lodash/is-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
* @return {Boolean} 是否HTML元素
*/
const isElement = function (o: any): boolean {
return o instanceof Element || o instanceof HTMLDocument;
return o instanceof Element || o instanceof Document;
};
export default isElement;

0 comments on commit be65935

Please sign in to comment.