Skip to content

Commit 5182eea

Browse files
authored
Clarify docs on CE constructors (#76)
1 parent 2cc4d4b commit 5182eea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/rules/no-constructor-params.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Disallows constructor parameters in custom elements (no-constructor-params)
22

33
Ensures that custom element constructors have no parameters as they
4-
are never constructed directly but are rather constructed automatically when
5-
appended to the DOM (or via `createElement` etc).
4+
are typically not constructed directly but are instead constructed by DOM APIs
5+
like document.createElement, or by the HTML Parser. When constructed this way,
6+
no arguments are passed to the constructor.
67

78
## Rule Details
89

0 commit comments

Comments
 (0)