-
Notifications
You must be signed in to change notification settings - Fork 0
/
HTMLFieldSetElement.cljs
168 lines (129 loc) · 4.28 KB
/
HTMLFieldSetElement.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
(ns web.dom.HTMLFieldSetElement
"The HTMLFieldSetElement interface provides special properties
methods (beyond the regular `web.dom.HTMLElement` interface it
has available to it by inheritance) for manipulating the layout
presentation of `<fieldset>` elements."
(:refer-clojure :exclude [name type]))
(defn check-validity
"Method.
Always returns true because <fieldset> objects are never candidates
constraint validation."
[this & args]
(-> this .-checkValidity (.apply this (clj->js args))))
(defn report-validity
"Method.
Always returns true because <fieldset> objects are never candidates
constraint validation."
[this & args]
(-> this .-reportValidity (.apply this (clj->js args))))
(defn set-custom-validity
"Method.
Sets a custom validity message for the field set. If this message
not the empty string, then the field set is suffering from a
validity error, and does not validate."
[this & args]
(-> this .-setCustomValidity (.apply this (clj->js args))))
(defn disabled
"Property.
A Boolean reflecting the disabled HTML attribute, indicating
the user can interact with the control."
[this]
(-> this (.-disabled)))
(defn set-disabled!
"Property.
A Boolean reflecting the disabled HTML attribute, indicating
the user can interact with the control."
[this val]
(aset this "disabled" val))
(defn elements
"Property.
The elements belonging to this field set. The type of this property
on the version of the spec that is implemented by the browser."
[this]
(-> this (.-elements)))
(defn set-elements!
"Property.
The elements belonging to this field set. The type of this property
on the version of the spec that is implemented by the browser."
[this val]
(aset this "elements" val))
(defn form
"Property.
An HTMLFormControlsCollection or HTMLCollection referencing the
form element, if this element is in a form.
If the field set is not a descendant of a form element, then
attribute can be the ID of any form element in the same document
is related to, or the null value if none matches."
[this]
(-> this (.-form)))
(defn set-form!
"Property.
An HTMLFormControlsCollection or HTMLCollection referencing the
form element, if this element is in a form.
If the field set is not a descendant of a form element, then
attribute can be the ID of any form element in the same document
is related to, or the null value if none matches."
[this val]
(aset this "form" val))
(defn name
"Property.
A DOMString reflecting the name HTML attribute, containing the
of the field set, used for submitting the form."
[this]
(-> this (.-name)))
(defn set-name!
"Property.
A DOMString reflecting the name HTML attribute, containing the
of the field set, used for submitting the form."
[this val]
(aset this "name" val))
(defn type
"Property.
The DOMString \"fieldset\"."
[this]
(-> this (.-type)))
(defn set-type!
"Property.
The DOMString \"fieldset\"."
[this val]
(aset this "type" val))
(defn validation-message
"Property.
A DOMString representing a localized message that describes the
constraints that the element does not satisfy (if any). This
the empty string if the element is not a candidate for constraint
(willValidate is false), or it satisfies its constraints."
[this]
(-> this (.-validationMessage)))
(defn set-validation-message!
"Property.
A DOMString representing a localized message that describes the
constraints that the element does not satisfy (if any). This
the empty string if the element is not a candidate for constraint
(willValidate is false), or it satisfies its constraints."
[this val]
(aset this "validationMessage" val))
(defn validity
"Property.
A ValidityState representing the validity states that this element
in."
[this]
(-> this (.-validity)))
(defn set-validity!
"Property.
A ValidityState representing the validity states that this element
in."
[this val]
(aset this "validity" val))
(defn will-validate
"Property.
A Boolean false, because <fieldset> objects are never candidates
constraint validation."
[this]
(-> this (.-willValidate)))
(defn set-will-validate!
"Property.
A Boolean false, because <fieldset> objects are never candidates
constraint validation."
[this val]
(aset this "willValidate" val))