maxcountryman_web_sys/features/
gen_ProcessingInstruction.rs

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