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
@@ -131,12 +179,21 @@ function levelOf(node: Text): number {
131
179
current=current.host;
132
180
}
133
181
182
+
previous=current;
134
183
current=current.parentNode;
135
184
}
136
185
137
186
return1;
138
187
}
139
188
189
+
/**
190
+
* Determines what your heading level should be (h1 - h6).
191
+
*
192
+
* In your app, you can use any of `<section>`, `<article>`, and `<aside>` elements to denote when the [_Section Heading_][mdn-h] element should change its level.
193
+
Note that this demo starts with `h3`, because this docs page already has an `h1`, and _this_ section (Usage) uses an `h2`.
0 commit comments