-
Notifications
You must be signed in to change notification settings - Fork 0
/
SVGStyleElement.cljs
64 lines (51 loc) · 1.91 KB
/
SVGStyleElement.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
(ns web.svg.SVGStyleElement
"The SVGStyleElement interface corresponds to the SVG `<style>`"
(:refer-clojure :exclude [type]))
(defn type
"Property.
A DOMString corresponding to the type attribute of the given
SVG 1.1 defined that a DOMException is raised with code NO_MODIFICATION_ALLOWED_ERR
an attempt to change the value of a read-only attribute. This
was removed in SVG 2."
[this]
(-> this (.-type)))
(defn set-type!
"Property.
A DOMString corresponding to the type attribute of the given
SVG 1.1 defined that a DOMException is raised with code NO_MODIFICATION_ALLOWED_ERR
an attempt to change the value of a read-only attribute. This
was removed in SVG 2."
[this val]
(aset this "type" val))
(defn media
"Property.
A DOMString corresponding to the media attribute of the given
SVG 1.1 defined that a DOMException is raised with code NO_MODIFICATION_ALLOWED_ERR
an attempt to change the value of a read-only attribute. This
was removed in SVG 2."
[this]
(-> this (.-media)))
(defn set-media!
"Property.
A DOMString corresponding to the media attribute of the given
SVG 1.1 defined that a DOMException is raised with code NO_MODIFICATION_ALLOWED_ERR
an attempt to change the value of a read-only attribute. This
was removed in SVG 2."
[this val]
(aset this "media" val))
(defn title
"Property.
A DOMString corresponding to the title attribute of the given
SVG 1.1 defined that a DOMException is raised with code NO_MODIFICATION_ALLOWED_ERR
an attempt to change the value of a read-only attribute. This
was removed in SVG 2."
[this]
(-> this (.-title)))
(defn set-title!
"Property.
A DOMString corresponding to the title attribute of the given
SVG 1.1 defined that a DOMException is raised with code NO_MODIFICATION_ALLOWED_ERR
an attempt to change the value of a read-only attribute. This
was removed in SVG 2."
[this val]
(aset this "title" val))