|
2 | 2 | Abstract:
|
3 | 3 | The file contains the protocols for the basic html-attributes.
|
4 | 4 |
|
5 |
| - Authors: |
6 |
| - - Mats Moll (https://github.com/matsmoll) |
7 |
| - |
8 |
| - Contributors: |
9 |
| - - Mattes Mohr (https://github.com/mattesmohr) |
10 |
| - |
11 | 5 | Note:
|
12 | 6 | If you about to add something to the file, stick to the official documentation to keep the code consistent.
|
13 | 7 | */
|
@@ -178,7 +172,7 @@ public protocol AutocapitalizeAttribute: AnyAttribute {
|
178 | 172 | /// ```html
|
179 | 173 | /// <tag autocapitalize="" />
|
180 | 174 | /// ```
|
181 |
| - func autocapitalize(_ type: Capitalization) -> Self |
| 175 | + func autocapitalize(_ value: Values.Capitalization) -> Self |
182 | 176 | }
|
183 | 177 |
|
184 | 178 | extension AutocapitalizeAttribute {
|
@@ -208,7 +202,7 @@ public protocol AutocompleteAttribute: AnyAttribute {
|
208 | 202 | /// ```html
|
209 | 203 | /// <tag autocomplete="" />
|
210 | 204 | /// ```
|
211 |
| - func hasCompletion(_ condition: Bool) -> Self |
| 205 | + func hasCompletion(_ value: Bool) -> Self |
212 | 206 | }
|
213 | 207 |
|
214 | 208 | extension AutocompleteAttribute {
|
@@ -298,7 +292,7 @@ public protocol CharsetAttribute: AnyAttribute {
|
298 | 292 | /// ```html
|
299 | 293 | /// <tag charset="" />
|
300 | 294 | /// ```
|
301 |
| - func charset(_ value: Charset) -> Self |
| 295 | + func charset(_ value: Values.Charset) -> Self |
302 | 296 | }
|
303 | 297 |
|
304 | 298 | extension CharsetAttribute {
|
@@ -511,7 +505,7 @@ public protocol EditAttribute: AnyAttribute {
|
511 | 505 | /// ```html
|
512 | 506 | /// <tag contenteditable />
|
513 | 507 | /// ```
|
514 |
| - func isEditable(_ condition: Bool) -> Self |
| 508 | + func isEditable(_ value: Bool) -> Self |
515 | 509 | }
|
516 | 510 |
|
517 | 511 | extension EditAttribute {
|
@@ -723,7 +717,7 @@ public protocol DirectionAttribute: AnyAttribute {
|
723 | 717 | /// ```html
|
724 | 718 | /// <tag dir="" />
|
725 | 719 | /// ```
|
726 |
| - func direction(_ type: Direction) -> Self |
| 720 | + func direction(_ value: Values.Direction) -> Self |
727 | 721 | }
|
728 | 722 |
|
729 | 723 | extension DirectionAttribute {
|
@@ -813,7 +807,7 @@ public protocol DragAttribute: AnyAttribute {
|
813 | 807 | /// ```html
|
814 | 808 | /// <tag draggable />
|
815 | 809 | /// ```
|
816 |
| - func isDraggable(_ condition: Bool) -> Self |
| 810 | + func isDraggable(_ value: Bool) -> Self |
817 | 811 | }
|
818 | 812 |
|
819 | 813 | extension DragAttribute {
|
@@ -845,7 +839,7 @@ public protocol EncodingAttribute: AnyAttribute {
|
845 | 839 | /// ```html
|
846 | 840 | /// <tag enctype="" />
|
847 | 841 | /// ```
|
848 |
| - func encoding(_ type: Encoding) -> Self |
| 842 | + func encoding(_ value: Values.Encoding) -> Self |
849 | 843 | }
|
850 | 844 |
|
851 | 845 | extension EncodingAttribute {
|
@@ -877,7 +871,7 @@ public protocol EnterKeyHintAttribute: AnyAttribute {
|
877 | 871 | /// ```html
|
878 | 872 | /// <tag enterkeyhint="" />
|
879 | 873 | /// ```
|
880 |
| - func enterKeyHint(_ type: Hint) -> Self |
| 874 | + func enterKeyHint(_ value: Values.Hint) -> Self |
881 | 875 | }
|
882 | 876 |
|
883 | 877 | extension EnterKeyHintAttribute {
|
@@ -1003,7 +997,7 @@ public protocol EquivalentAttribute: AnyAttribute {
|
1003 | 997 | /// ```html
|
1004 | 998 | /// <tag http-equiv="" />
|
1005 | 999 | /// ```
|
1006 |
| - func equivalent(_ value: Equivalent) -> Self |
| 1000 | + func equivalent(_ value: Values.Equivalent) -> Self |
1007 | 1001 | }
|
1008 | 1002 |
|
1009 | 1003 | extension EquivalentAttribute {
|
@@ -1195,7 +1189,7 @@ public protocol ReferenceLanguageAttribute: AnyAttribute {
|
1195 | 1189 | /// ```html
|
1196 | 1190 | /// <tag hreflang="" />
|
1197 | 1191 | /// ```
|
1198 |
| - func referenceLanguage(_ type: Language) -> Self |
| 1192 | + func referenceLanguage(_ value: Values.Language) -> Self |
1199 | 1193 | }
|
1200 | 1194 |
|
1201 | 1195 | extension ReferenceLanguageAttribute {
|
@@ -1499,7 +1493,7 @@ public protocol KindAttribute: AnyAttribute {
|
1499 | 1493 | /// ```html
|
1500 | 1494 | /// <tag kind="" />
|
1501 | 1495 | /// ```
|
1502 |
| - func kind(_ type: Kinds) -> Self |
| 1496 | + func kind(_ value: Values.Kind) -> Self |
1503 | 1497 | }
|
1504 | 1498 |
|
1505 | 1499 | extension KindAttribute {
|
@@ -1559,7 +1553,7 @@ public protocol LanguageAttribute: AnyAttribute {
|
1559 | 1553 | /// ```html
|
1560 | 1554 | /// <tag lang="" />
|
1561 | 1555 | /// ```
|
1562 |
| - func language(_ type: Language) -> Self |
| 1556 | + func language(_ value: Values.Language) -> Self |
1563 | 1557 | }
|
1564 | 1558 |
|
1565 | 1559 | extension LanguageAttribute {
|
@@ -1771,7 +1765,7 @@ public protocol MethodAttribute: AnyAttribute {
|
1771 | 1765 | /// ```html
|
1772 | 1766 | /// <tag method="" />
|
1773 | 1767 | /// ```
|
1774 |
| - func method(_ type: Method) -> Self |
| 1768 | + func method(_ value: Values.Method) -> Self |
1775 | 1769 | }
|
1776 | 1770 |
|
1777 | 1771 | extension MethodAttribute {
|
@@ -2018,7 +2012,7 @@ public protocol OpenAttribute: AnyAttribute {
|
2018 | 2012 | /// ```html
|
2019 | 2013 | /// <tag open />
|
2020 | 2014 | /// ```
|
2021 |
| - func isOpen(_ condition: Bool) -> Self |
| 2015 | + func isOpen(_ value: Bool) -> Self |
2022 | 2016 | }
|
2023 | 2017 |
|
2024 | 2018 | extension OpenAttribute {
|
@@ -2230,7 +2224,7 @@ public protocol PreloadAttribute: AnyAttribute {
|
2230 | 2224 | /// ```html
|
2231 | 2225 | /// <tag preload="" />
|
2232 | 2226 | /// ```
|
2233 |
| - func preload(_ type: Preload) -> Self |
| 2227 | + func preload(_ value: Values.Preload) -> Self |
2234 | 2228 | }
|
2235 | 2229 |
|
2236 | 2230 | extension PreloadAttribute {
|
@@ -2290,7 +2284,7 @@ public protocol ReferrerPolicyAttribute: AnyAttribute {
|
2290 | 2284 | /// ```html
|
2291 | 2285 | /// <tag referrerpolicy="" />
|
2292 | 2286 | /// ```
|
2293 |
| - func referrerPolicy(_ type: Policy) -> Self |
| 2287 | + func referrerPolicy(_ value: Values.Policy) -> Self |
2294 | 2288 | }
|
2295 | 2289 |
|
2296 | 2290 | extension ReferrerPolicyAttribute {
|
@@ -2320,7 +2314,7 @@ public protocol RelationshipAttribute: AnyAttribute {
|
2320 | 2314 | /// ```html
|
2321 | 2315 | /// <tag rel="" />
|
2322 | 2316 | /// ```
|
2323 |
| - func relationship(_ type: Relation) -> Self |
| 2317 | + func relationship(_ value: Values.Relation) -> Self |
2324 | 2318 | }
|
2325 | 2319 |
|
2326 | 2320 | extension RelationshipAttribute {
|
@@ -2410,7 +2404,7 @@ public protocol RoleAttribute: AnyAttribute {
|
2410 | 2404 | /// ```html
|
2411 | 2405 | /// <tag role="" />
|
2412 | 2406 | /// ```
|
2413 |
| - func role(_ value: Roles) -> Self |
| 2407 | + func role(_ value: Values.Role) -> Self |
2414 | 2408 | }
|
2415 | 2409 |
|
2416 | 2410 | extension RoleAttribute {
|
@@ -2560,7 +2554,7 @@ public protocol ShapeAttribute: AnyAttribute {
|
2560 | 2554 | /// ```html
|
2561 | 2555 | /// <tag shape="" />
|
2562 | 2556 | /// ```
|
2563 |
| - func shape(_ type: Shape) -> Self |
| 2557 | + func shape(_ value: Values.Shape) -> Self |
2564 | 2558 | }
|
2565 | 2559 |
|
2566 | 2560 | extension ShapeAttribute {
|
@@ -2710,7 +2704,7 @@ public protocol SpellCheckAttribute: AnyAttribute {
|
2710 | 2704 | /// ```html
|
2711 | 2705 | /// <tag spellcheck="" />
|
2712 | 2706 | /// ```
|
2713 |
| - func hasSpellCheck(_ condition: Bool) -> Self |
| 2707 | + func hasSpellCheck(_ value: Bool) -> Self |
2714 | 2708 | }
|
2715 | 2709 |
|
2716 | 2710 | extension SpellCheckAttribute {
|
@@ -2890,7 +2884,7 @@ public protocol TargetAttribute: AnyAttribute {
|
2890 | 2884 | /// ```html
|
2891 | 2885 | /// <tag target="" />
|
2892 | 2886 | /// ```
|
2893 |
| - func target(_ type: Target) -> Self |
| 2887 | + func target(_ value: Values.Target) -> Self |
2894 | 2888 | }
|
2895 | 2889 |
|
2896 | 2890 | extension TargetAttribute {
|
@@ -2950,7 +2944,7 @@ public protocol TranslateAttribute: AnyAttribute {
|
2950 | 2944 | /// ```html
|
2951 | 2945 | /// <tag translate="" />
|
2952 | 2946 | /// ```
|
2953 |
| - func translate(_ type: Decision) -> Self |
| 2947 | + func translate(_ value: Values.Decision) -> Self |
2954 | 2948 | }
|
2955 | 2949 |
|
2956 | 2950 | extension TranslateAttribute {
|
@@ -3074,7 +3068,7 @@ public protocol WrapAttribute: AnyAttribute {
|
3074 | 3068 | /// ```html
|
3075 | 3069 | /// <tag wrap="" />
|
3076 | 3070 | /// ```
|
3077 |
| - func wrap(_ type: Wrapping) -> Self |
| 3071 | + func wrap(_ value: Values.Wrapping) -> Self |
3078 | 3072 | }
|
3079 | 3073 |
|
3080 | 3074 | extension WrapAttribute {
|
@@ -3106,7 +3100,7 @@ public protocol PropertyAttribute: AnyAttribute {
|
3106 | 3100 | /// ```
|
3107 | 3101 | ///
|
3108 | 3102 | /// - Parameter type:
|
3109 |
| - func property(_ type: Graphs) -> Self |
| 3103 | + func property(_ value: Values.Graph) -> Self |
3110 | 3104 | }
|
3111 | 3105 |
|
3112 | 3106 | extension PropertyAttribute {
|
|
0 commit comments