@@ -18,10 +18,14 @@ import type { ParsedAttributePair } from '../helpers/attribute-utils';
18
18
*
19
19
* ### Syntax
20
20
*
21
+ * <!-- markdownlint-disable line-length -->
22
+ *
21
23
* ```text
22
- * example.com#%#//scriptlet('trusted-create-element', parentSelector, tagName[, attributePairs[, textContent[, cleanupDelayMs]]]) <!-- markdownlint-disable-line line-length -->
24
+ * example.com#%#//scriptlet('trusted-create-element', parentSelector, tagName[, attributePairs[, textContent[, cleanupDelayMs]]])
23
25
* ```
24
26
*
27
+ * <!-- markdownlint-enable line-length -->
28
+ *
25
29
* - `parentSelector` — required, CSS selector of the parent element to append the created element to.
26
30
* - `tagName` — required, tag name of the created element.
27
31
* - `attributePairs` — optional, space-separated list of attribute name and value pairs separated by `=`.
@@ -48,10 +52,14 @@ import type { ParsedAttributePair } from '../helpers/attribute-utils';
48
52
*
49
53
* 1. Create a button element with multiple attributes, including attribute without value, and text content
50
54
*
55
+ * <!-- markdownlint-disable line-length -->
56
+ *
51
57
* ```adblock
52
- * example.com#%#//scriptlet('trusted-create-element', 'body', 'button', 'disabled aria-hidden="true" style="width: 0px"', 'Press here') <!-- markdownlint-disable-line line-length -->
58
+ * example.com#%#//scriptlet('trusted-create-element', 'body', 'button', 'disabled aria-hidden="true" style="width: 0px"', 'Press here')
53
59
* ```
54
60
*
61
+ * <!-- markdownlint-enable line-length -->
62
+ *
55
63
* 1. Create a button element with an attribute whose value contains quotes
56
64
*
57
65
* ```adblock
@@ -61,7 +69,7 @@ import type { ParsedAttributePair } from '../helpers/attribute-utils';
61
69
* 1. Create a paragraph element with text content and remove it after 5 seconds
62
70
*
63
71
* ```adblock
64
- * example.com#%#//scriptlet('trusted-create-element', '.container > article', 'p', '', 'Hello world!', 5000)
72
+ * example.com#%#//scriptlet('trusted-create-element', '.container > article', 'p', '', 'Hello world!', ' 5000' )
65
73
* ```
66
74
*
67
75
* @added v1.10.1.
0 commit comments