Skip to content

Commit

Permalink
[add] Detail Element polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Jan 17, 2024
1 parent b8a9351 commit 029e65f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 32 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-polyfill",
"version": "0.6.6",
"version": "0.6.7",
"license": "AGPL-3.0",
"author": "[email protected]",
"description": "An automatic CDN service for Web polyfills, which is based on TypeScript, Node.js & JSDelivr.",
Expand Down Expand Up @@ -33,10 +33,10 @@
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": "^18.19.6",
"@types/node": "^18.19.8",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"prettier": "^3.2.4",
"tsx": "^4.7.0",
"typescript": "~5.3.3"
},
Expand Down
58 changes: 29 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions source/list/DOM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ export class EventSubmitter extends Polyfill {
};
}

export class Detail extends Polyfill {
packageName = 'details-element-polyfill';

detect = function () {
return 'HTMLDetailsElement' in window;
};
}

export class Dialog extends Polyfill {
packageName = 'dialog-polyfill';

Expand Down

0 comments on commit 029e65f

Please sign in to comment.