web_sys/features/
gen_ProcessingInstruction.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "CharacterData",
9 extends = "Node",
10 extends = "EventTarget",
11 extends = "::js_sys::Object",
12 js_name = "ProcessingInstruction",
13 typescript_type = "ProcessingInstruction"
14 )]
15 #[derive(Debug, Clone, PartialEq, Eq)]
16 #[doc = "The `ProcessingInstruction` class."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`*"]
21 pub type ProcessingInstruction;
22 #[wasm_bindgen(method, getter, js_class = "ProcessingInstruction", js_name = "target")]
23 #[doc = "Getter for the `target` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/target)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`*"]
28 pub fn target(this: &ProcessingInstruction) -> ::alloc::string::String;
29 #[cfg(feature = "StyleSheet")]
30 #[wasm_bindgen(method, getter, js_class = "ProcessingInstruction", js_name = "sheet")]
31 #[doc = "Getter for the `sheet` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`, `StyleSheet`*"]
36 pub fn sheet(this: &ProcessingInstruction) -> Option<StyleSheet>;
37}