File tree 4 files changed +74
-1
lines changed
4 files changed +74
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " HTMLIframeElement: getSVGDocument() method"
3
+ short-title : getSVGDocument
4
+ slug : Web/API/HTMLIframeElement/getSVGDocument
5
+ page-type : web-api-instance-method
6
+ browser-compat : api.HTMLIframeElement.getSVGDocument
7
+ ---
8
+
9
+ {{APIRef("HTML DOM")}}
10
+
11
+ The ** ` getSVGDocument() ` ** method of the {{domxref("HTMLIframeElement")}} interface returns the {{domxref("Document")}} object of the embedded SVG.
12
+
13
+ ## Value
14
+
15
+ A {{domxref("Document")}}.
16
+
17
+ ## Examples
18
+
19
+ ``` js
20
+ const svgDoc = document .getElementById (" el" ).getSVGDocument ();
21
+ ```
22
+
23
+ ## Specifications
24
+
25
+ {{Specifications}}
26
+
27
+ ## Browser compatibility
28
+
29
+ {{Compat}}
30
+
31
+ ## See also
32
+
33
+ - {{domxref("HTMLEmbedElement.getSVGDocument")}}
34
+ - {{domxref("HTMLObjectElement.getSVGDocument")}}
Original file line number Diff line number Diff line change @@ -65,7 +65,10 @@ _Inherits properties from its parent, {{domxref("HTMLElement")}}_.
65
65
66
66
## Instance methods
67
67
68
- _ Inherits methods from its parent, {{domxref("HTMLElement")}}_ .
68
+ _ Also inherits methods from its parent interface, {{domxref("HTMLElement")}}._
69
+
70
+ - {{domxref("HTMLIframeElement.getSVGDocument()")}}
71
+ - : Returns the embedded SVG as a {{domxref("Document")}}.
69
72
70
73
## Specifications
71
74
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " HTMLObjectElement: getSVGDocument() method"
3
+ short-title : getSVGDocument
4
+ slug : Web/API/HTMLObjectElement/getSVGDocument
5
+ page-type : web-api-instance-method
6
+ browser-compat : api.HTMLObjectElement.getSVGDocument
7
+ ---
8
+
9
+ {{APIRef("HTML DOM")}}
10
+
11
+ The ** ` getSVGDocument() ` ** method of the {{domxref("HTMLObjectElement")}} interface returns the {{domxref("Document")}} object of the embedded SVG.
12
+
13
+ ## Value
14
+
15
+ A {{domxref("Document")}}.
16
+
17
+ ## Examples
18
+
19
+ ``` js
20
+ const svg = document .getElementById (" el" ).getSVGDocument ();
21
+ ```
22
+
23
+ ## Specifications
24
+
25
+ {{Specifications}}
26
+
27
+ ## Browser compatibility
28
+
29
+ {{Compat}}
30
+
31
+ ## See also
32
+
33
+ - {{domxref("HTMLIFrameElement.getSVGDocument")}}
34
+ - {{domxref("HTMLEmbedElement.getSVGDocument")}}
Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ _Inherits methods from its parent, {{domxref("HTMLElement")}}._
66
66
67
67
- {{domxref("HTMLObjectElement.checkValidity()")}}
68
68
- : Always returns ` true ` because {{HTMLElement("object")}} elements are never candidates for constraint validation.
69
+ - {{domxref("HTMLObjectElement.getSVGDocument()")}}
70
+ - : Returns the embedded SVG as a {{domxref("Document")}}.
69
71
- {{domxref("HTMLObjectElement.reportValidity()")}}
70
72
- : Always returns ` true ` because {{HTMLElement("object")}} elements are never candidates for constraint validation.
71
73
- {{domxref("HTMLObjectElement.setCustomValidity()")}}
You can’t perform that action at this time.
0 commit comments