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
use crate::*;
/// Checks whether a DOM node is currently connected to the document.
///
/// Uses the `isConnected` JavaScript property to determine if the node
/// is still attached to the live DOM tree.
///
/// # Arguments
///
/// - `&T` - A reference to any type that can be converted to `&Node`.
///
/// # Returns
///
/// - `bool` - `true` if the node is connected to the document, `false` otherwise.
pub
/// Returns true if the given attribute name is a boolean attribute that
/// requires DOM property-based manipulation instead of HTML attribute strings.
///
/// # Arguments
///
/// - `&str` - The attribute name to check.
///
/// # Returns
///
/// - `bool` - `true` if the attribute is a boolean property, `false` otherwise.
pub