@@ -120,7 +120,7 @@ export default class DOMLocalization extends Localization {
120
120
* Additionally, if this `DOMLocalization` has an observer, start observing
121
121
* `newRoot` in order to translate mutations in it.
122
122
*
123
- * @param {Element } newRoot - Root to observe.
123
+ * @param {Element | DocumentFragment } newRoot - Root to observe.
124
124
*/
125
125
connectRoot ( newRoot ) {
126
126
for ( const root of this . roots ) {
@@ -158,7 +158,7 @@ export default class DOMLocalization extends Localization {
158
158
* Returns `true` if the root was the last one managed by this
159
159
* `DOMLocalization`.
160
160
*
161
- * @param {Element } root - Root to disconnect.
161
+ * @param {Element | DocumentFragment } root - Root to disconnect.
162
162
* @returns {boolean }
163
163
*/
164
164
disconnectRoot ( root ) {
@@ -269,7 +269,7 @@ export default class DOMLocalization extends Localization {
269
269
*
270
270
* Returns a `Promise` that gets resolved once the translation is complete.
271
271
*
272
- * @param {DOMFragment } frag - Element or DocumentFragment to be translated
272
+ * @param {Element | DocumentFragment } frag - Element or DocumentFragment to be translated
273
273
* @returns {Promise }
274
274
*/
275
275
translateFragment ( frag ) {
@@ -321,7 +321,7 @@ export default class DOMLocalization extends Localization {
321
321
/**
322
322
* Collects all translatable child elements of the element.
323
323
*
324
- * @param {Element } element
324
+ * @param {Element | DocumentFragment } element
325
325
* @returns {Array<Element> }
326
326
* @private
327
327
*/
0 commit comments