1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(DOMNode, DOMObject, WebScriptObject, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(all(
15 feature = "DOMNode",
16 feature = "DOMObject",
17 feature = "WebScriptObject"
18 ))]
19 #[deprecated]
20 pub struct DOMDocument;
21);
22
23#[cfg(all(
24 feature = "DOMEventTarget",
25 feature = "DOMNode",
26 feature = "DOMObject",
27 feature = "WebScriptObject"
28))]
29extern_conformance!(
30 unsafe impl DOMEventTarget for DOMDocument {}
31);
32
33#[cfg(all(
34 feature = "DOMNode",
35 feature = "DOMObject",
36 feature = "WebScriptObject"
37))]
38extern_conformance!(
39 unsafe impl NSCopying for DOMDocument {}
40);
41
42#[cfg(all(
43 feature = "DOMNode",
44 feature = "DOMObject",
45 feature = "WebScriptObject"
46))]
47unsafe impl CopyingHelper for DOMDocument {
48 type Result = Self;
49}
50
51#[cfg(all(
52 feature = "DOMNode",
53 feature = "DOMObject",
54 feature = "WebScriptObject"
55))]
56extern_conformance!(
57 unsafe impl NSObjectProtocol for DOMDocument {}
58);
59
60#[cfg(all(
61 feature = "DOMNode",
62 feature = "DOMObject",
63 feature = "WebScriptObject"
64))]
65impl DOMDocument {
66 extern_methods!(
67 #[cfg(feature = "DOMDocumentType")]
68 #[deprecated]
69 #[unsafe(method(doctype))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn doctype(&self) -> Option<Retained<DOMDocumentType>>;
72
73 #[cfg(feature = "DOMImplementation")]
74 #[deprecated]
75 #[unsafe(method(implementation))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn implementation(&self) -> Option<Retained<DOMImplementation>>;
78
79 #[cfg(feature = "DOMElement")]
80 #[deprecated]
81 #[unsafe(method(documentElement))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn documentElement(&self) -> Option<Retained<DOMElement>>;
84
85 #[unsafe(method(inputEncoding))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn inputEncoding(&self) -> Retained<NSString>;
88
89 #[unsafe(method(xmlEncoding))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn xmlEncoding(&self) -> Retained<NSString>;
92
93 #[unsafe(method(xmlVersion))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn xmlVersion(&self) -> Retained<NSString>;
96
97 #[unsafe(method(setXmlVersion:))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn setXmlVersion(&self, xml_version: Option<&NSString>);
101
102 #[unsafe(method(xmlStandalone))]
103 #[unsafe(method_family = none)]
104 pub unsafe fn xmlStandalone(&self) -> bool;
105
106 #[unsafe(method(setXmlStandalone:))]
108 #[unsafe(method_family = none)]
109 pub unsafe fn setXmlStandalone(&self, xml_standalone: bool);
110
111 #[unsafe(method(documentURI))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn documentURI(&self) -> Retained<NSString>;
114
115 #[unsafe(method(setDocumentURI:))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn setDocumentURI(&self, document_uri: Option<&NSString>);
119
120 #[cfg(feature = "DOMAbstractView")]
121 #[deprecated]
122 #[unsafe(method(defaultView))]
123 #[unsafe(method_family = none)]
124 pub unsafe fn defaultView(&self) -> Option<Retained<DOMAbstractView>>;
125
126 #[cfg(feature = "DOMStyleSheetList")]
127 #[deprecated]
128 #[unsafe(method(styleSheets))]
129 #[unsafe(method_family = none)]
130 pub unsafe fn styleSheets(&self) -> Option<Retained<DOMStyleSheetList>>;
131
132 #[deprecated]
133 #[unsafe(method(title))]
134 #[unsafe(method_family = none)]
135 pub unsafe fn title(&self) -> Retained<NSString>;
136
137 #[deprecated]
139 #[unsafe(method(setTitle:))]
140 #[unsafe(method_family = none)]
141 pub unsafe fn setTitle(&self, title: Option<&NSString>);
142
143 #[deprecated]
144 #[unsafe(method(referrer))]
145 #[unsafe(method_family = none)]
146 pub unsafe fn referrer(&self) -> Retained<NSString>;
147
148 #[deprecated]
149 #[unsafe(method(domain))]
150 #[unsafe(method_family = none)]
151 pub unsafe fn domain(&self) -> Retained<NSString>;
152
153 #[deprecated]
154 #[unsafe(method(URL))]
155 #[unsafe(method_family = none)]
156 pub unsafe fn URL(&self) -> Retained<NSString>;
157
158 #[deprecated]
159 #[unsafe(method(cookie))]
160 #[unsafe(method_family = none)]
161 pub unsafe fn cookie(&self) -> Retained<NSString>;
162
163 #[deprecated]
165 #[unsafe(method(setCookie:))]
166 #[unsafe(method_family = none)]
167 pub unsafe fn setCookie(&self, cookie: Option<&NSString>);
168
169 #[cfg(all(feature = "DOMElement", feature = "DOMHTMLElement"))]
170 #[deprecated]
171 #[unsafe(method(body))]
172 #[unsafe(method_family = none)]
173 pub unsafe fn body(&self) -> Option<Retained<DOMHTMLElement>>;
174
175 #[cfg(all(feature = "DOMElement", feature = "DOMHTMLElement"))]
176 #[deprecated]
178 #[unsafe(method(setBody:))]
179 #[unsafe(method_family = none)]
180 pub unsafe fn setBody(&self, body: Option<&DOMHTMLElement>);
181
182 #[cfg(feature = "DOMHTMLCollection")]
183 #[deprecated]
184 #[unsafe(method(images))]
185 #[unsafe(method_family = none)]
186 pub unsafe fn images(&self) -> Option<Retained<DOMHTMLCollection>>;
187
188 #[cfg(feature = "DOMHTMLCollection")]
189 #[deprecated]
190 #[unsafe(method(applets))]
191 #[unsafe(method_family = none)]
192 pub unsafe fn applets(&self) -> Option<Retained<DOMHTMLCollection>>;
193
194 #[cfg(feature = "DOMHTMLCollection")]
195 #[deprecated]
196 #[unsafe(method(links))]
197 #[unsafe(method_family = none)]
198 pub unsafe fn links(&self) -> Option<Retained<DOMHTMLCollection>>;
199
200 #[cfg(feature = "DOMHTMLCollection")]
201 #[deprecated]
202 #[unsafe(method(forms))]
203 #[unsafe(method_family = none)]
204 pub unsafe fn forms(&self) -> Option<Retained<DOMHTMLCollection>>;
205
206 #[cfg(feature = "DOMHTMLCollection")]
207 #[deprecated]
208 #[unsafe(method(anchors))]
209 #[unsafe(method_family = none)]
210 pub unsafe fn anchors(&self) -> Option<Retained<DOMHTMLCollection>>;
211
212 #[unsafe(method(lastModified))]
213 #[unsafe(method_family = none)]
214 pub unsafe fn lastModified(&self) -> Retained<NSString>;
215
216 #[unsafe(method(charset))]
217 #[unsafe(method_family = none)]
218 pub unsafe fn charset(&self) -> Retained<NSString>;
219
220 #[unsafe(method(setCharset:))]
222 #[unsafe(method_family = none)]
223 pub unsafe fn setCharset(&self, charset: Option<&NSString>);
224
225 #[unsafe(method(defaultCharset))]
226 #[unsafe(method_family = none)]
227 pub unsafe fn defaultCharset(&self) -> Retained<NSString>;
228
229 #[unsafe(method(readyState))]
230 #[unsafe(method_family = none)]
231 pub unsafe fn readyState(&self) -> Retained<NSString>;
232
233 #[unsafe(method(characterSet))]
234 #[unsafe(method_family = none)]
235 pub unsafe fn characterSet(&self) -> Retained<NSString>;
236
237 #[unsafe(method(preferredStylesheetSet))]
238 #[unsafe(method_family = none)]
239 pub unsafe fn preferredStylesheetSet(&self) -> Retained<NSString>;
240
241 #[unsafe(method(selectedStylesheetSet))]
242 #[unsafe(method_family = none)]
243 pub unsafe fn selectedStylesheetSet(&self) -> Retained<NSString>;
244
245 #[unsafe(method(setSelectedStylesheetSet:))]
247 #[unsafe(method_family = none)]
248 pub unsafe fn setSelectedStylesheetSet(&self, selected_stylesheet_set: Option<&NSString>);
249
250 #[cfg(feature = "DOMElement")]
251 #[unsafe(method(activeElement))]
252 #[unsafe(method_family = none)]
253 pub unsafe fn activeElement(&self) -> Option<Retained<DOMElement>>;
254
255 #[cfg(feature = "DOMElement")]
256 #[deprecated]
257 #[unsafe(method(createElement:))]
258 #[unsafe(method_family = none)]
259 pub unsafe fn createElement(
260 &self,
261 tag_name: Option<&NSString>,
262 ) -> Option<Retained<DOMElement>>;
263
264 #[cfg(feature = "DOMDocumentFragment")]
265 #[deprecated]
266 #[unsafe(method(createDocumentFragment))]
267 #[unsafe(method_family = none)]
268 pub unsafe fn createDocumentFragment(&self) -> Option<Retained<DOMDocumentFragment>>;
269
270 #[cfg(all(feature = "DOMCharacterData", feature = "DOMText"))]
271 #[deprecated]
272 #[unsafe(method(createTextNode:))]
273 #[unsafe(method_family = none)]
274 pub unsafe fn createTextNode(&self, data: Option<&NSString>) -> Option<Retained<DOMText>>;
275
276 #[cfg(all(feature = "DOMCharacterData", feature = "DOMComment"))]
277 #[deprecated]
278 #[unsafe(method(createComment:))]
279 #[unsafe(method_family = none)]
280 pub unsafe fn createComment(&self, data: Option<&NSString>)
281 -> Option<Retained<DOMComment>>;
282
283 #[cfg(all(
284 feature = "DOMCDATASection",
285 feature = "DOMCharacterData",
286 feature = "DOMText"
287 ))]
288 #[deprecated]
289 #[unsafe(method(createCDATASection:))]
290 #[unsafe(method_family = none)]
291 pub unsafe fn createCDATASection(
292 &self,
293 data: Option<&NSString>,
294 ) -> Option<Retained<DOMCDATASection>>;
295
296 #[cfg(all(feature = "DOMCharacterData", feature = "DOMProcessingInstruction"))]
297 #[unsafe(method(createProcessingInstruction:data:))]
298 #[unsafe(method_family = none)]
299 pub unsafe fn createProcessingInstruction_data(
300 &self,
301 target: Option<&NSString>,
302 data: Option<&NSString>,
303 ) -> Option<Retained<DOMProcessingInstruction>>;
304
305 #[cfg(feature = "DOMAttr")]
306 #[deprecated]
307 #[unsafe(method(createAttribute:))]
308 #[unsafe(method_family = none)]
309 pub unsafe fn createAttribute(&self, name: Option<&NSString>) -> Option<Retained<DOMAttr>>;
310
311 #[cfg(feature = "DOMEntityReference")]
312 #[deprecated]
313 #[unsafe(method(createEntityReference:))]
314 #[unsafe(method_family = none)]
315 pub unsafe fn createEntityReference(
316 &self,
317 name: Option<&NSString>,
318 ) -> Option<Retained<DOMEntityReference>>;
319
320 #[cfg(feature = "DOMNodeList")]
321 #[deprecated]
322 #[unsafe(method(getElementsByTagName:))]
323 #[unsafe(method_family = none)]
324 pub unsafe fn getElementsByTagName(
325 &self,
326 tagname: Option<&NSString>,
327 ) -> Option<Retained<DOMNodeList>>;
328
329 #[unsafe(method(importNode:deep:))]
330 #[unsafe(method_family = none)]
331 pub unsafe fn importNode_deep(
332 &self,
333 imported_node: Option<&DOMNode>,
334 deep: bool,
335 ) -> Option<Retained<DOMNode>>;
336
337 #[cfg(feature = "DOMElement")]
338 #[unsafe(method(createElementNS:qualifiedName:))]
339 #[unsafe(method_family = none)]
340 pub unsafe fn createElementNS_qualifiedName(
341 &self,
342 namespace_uri: Option<&NSString>,
343 qualified_name: Option<&NSString>,
344 ) -> Option<Retained<DOMElement>>;
345
346 #[cfg(feature = "DOMAttr")]
347 #[unsafe(method(createAttributeNS:qualifiedName:))]
348 #[unsafe(method_family = none)]
349 pub unsafe fn createAttributeNS_qualifiedName(
350 &self,
351 namespace_uri: Option<&NSString>,
352 qualified_name: Option<&NSString>,
353 ) -> Option<Retained<DOMAttr>>;
354
355 #[cfg(feature = "DOMNodeList")]
356 #[unsafe(method(getElementsByTagNameNS:localName:))]
357 #[unsafe(method_family = none)]
358 pub unsafe fn getElementsByTagNameNS_localName(
359 &self,
360 namespace_uri: Option<&NSString>,
361 local_name: Option<&NSString>,
362 ) -> Option<Retained<DOMNodeList>>;
363
364 #[unsafe(method(adoptNode:))]
365 #[unsafe(method_family = none)]
366 pub unsafe fn adoptNode(&self, source: Option<&DOMNode>) -> Option<Retained<DOMNode>>;
367
368 #[cfg(feature = "DOMEvent")]
369 #[deprecated]
370 #[unsafe(method(createEvent:))]
371 #[unsafe(method_family = none)]
372 pub unsafe fn createEvent(
373 &self,
374 event_type: Option<&NSString>,
375 ) -> Option<Retained<DOMEvent>>;
376
377 #[cfg(feature = "DOMRange")]
378 #[deprecated]
379 #[unsafe(method(createRange))]
380 #[unsafe(method_family = none)]
381 pub unsafe fn createRange(&self) -> Option<Retained<DOMRange>>;
382
383 #[cfg(all(feature = "DOMNodeFilter", feature = "DOMNodeIterator"))]
384 #[unsafe(method(createNodeIterator:whatToShow:filter:expandEntityReferences:))]
385 #[unsafe(method_family = none)]
386 pub unsafe fn createNodeIterator_whatToShow_filter_expandEntityReferences(
387 &self,
388 root: Option<&DOMNode>,
389 what_to_show: c_uint,
390 filter: Option<&ProtocolObject<dyn DOMNodeFilter>>,
391 expand_entity_references: bool,
392 ) -> Option<Retained<DOMNodeIterator>>;
393
394 #[cfg(all(feature = "DOMNodeFilter", feature = "DOMTreeWalker"))]
395 #[unsafe(method(createTreeWalker:whatToShow:filter:expandEntityReferences:))]
396 #[unsafe(method_family = none)]
397 pub unsafe fn createTreeWalker_whatToShow_filter_expandEntityReferences(
398 &self,
399 root: Option<&DOMNode>,
400 what_to_show: c_uint,
401 filter: Option<&ProtocolObject<dyn DOMNodeFilter>>,
402 expand_entity_references: bool,
403 ) -> Option<Retained<DOMTreeWalker>>;
404
405 #[cfg(all(feature = "DOMCSSStyleDeclaration", feature = "DOMElement"))]
406 #[unsafe(method(getOverrideStyle:pseudoElement:))]
407 #[unsafe(method_family = none)]
408 pub unsafe fn getOverrideStyle_pseudoElement(
409 &self,
410 element: Option<&DOMElement>,
411 pseudo_element: Option<&NSString>,
412 ) -> Option<Retained<DOMCSSStyleDeclaration>>;
413
414 #[cfg(all(feature = "DOMXPathExpression", feature = "DOMXPathNSResolver"))]
415 #[unsafe(method(createExpression:resolver:))]
416 #[unsafe(method_family = none)]
417 pub unsafe fn createExpression_resolver(
418 &self,
419 expression: Option<&NSString>,
420 resolver: Option<&ProtocolObject<dyn DOMXPathNSResolver>>,
421 ) -> Option<Retained<DOMXPathExpression>>;
422
423 #[cfg(feature = "DOMXPathNSResolver")]
424 #[unsafe(method(createNSResolver:))]
425 #[unsafe(method_family = none)]
426 pub unsafe fn createNSResolver(
427 &self,
428 node_resolver: Option<&DOMNode>,
429 ) -> Option<Retained<ProtocolObject<dyn DOMXPathNSResolver>>>;
430
431 #[cfg(all(feature = "DOMXPathNSResolver", feature = "DOMXPathResult"))]
432 #[unsafe(method(evaluate:contextNode:resolver:type:inResult:))]
433 #[unsafe(method_family = none)]
434 pub unsafe fn evaluate_contextNode_resolver_type_inResult(
435 &self,
436 expression: Option<&NSString>,
437 context_node: Option<&DOMNode>,
438 resolver: Option<&ProtocolObject<dyn DOMXPathNSResolver>>,
439 r#type: c_ushort,
440 in_result: Option<&DOMXPathResult>,
441 ) -> Option<Retained<DOMXPathResult>>;
442
443 #[unsafe(method(execCommand:userInterface:value:))]
444 #[unsafe(method_family = none)]
445 pub unsafe fn execCommand_userInterface_value(
446 &self,
447 command: Option<&NSString>,
448 user_interface: bool,
449 value: Option<&NSString>,
450 ) -> bool;
451
452 #[unsafe(method(execCommand:userInterface:))]
453 #[unsafe(method_family = none)]
454 pub unsafe fn execCommand_userInterface(
455 &self,
456 command: Option<&NSString>,
457 user_interface: bool,
458 ) -> bool;
459
460 #[unsafe(method(execCommand:))]
461 #[unsafe(method_family = none)]
462 pub unsafe fn execCommand(&self, command: Option<&NSString>) -> bool;
463
464 #[unsafe(method(queryCommandEnabled:))]
465 #[unsafe(method_family = none)]
466 pub unsafe fn queryCommandEnabled(&self, command: Option<&NSString>) -> bool;
467
468 #[unsafe(method(queryCommandIndeterm:))]
469 #[unsafe(method_family = none)]
470 pub unsafe fn queryCommandIndeterm(&self, command: Option<&NSString>) -> bool;
471
472 #[unsafe(method(queryCommandState:))]
473 #[unsafe(method_family = none)]
474 pub unsafe fn queryCommandState(&self, command: Option<&NSString>) -> bool;
475
476 #[unsafe(method(queryCommandSupported:))]
477 #[unsafe(method_family = none)]
478 pub unsafe fn queryCommandSupported(&self, command: Option<&NSString>) -> bool;
479
480 #[unsafe(method(queryCommandValue:))]
481 #[unsafe(method_family = none)]
482 pub unsafe fn queryCommandValue(
483 &self,
484 command: Option<&NSString>,
485 ) -> Option<Retained<NSString>>;
486
487 #[cfg(feature = "DOMNodeList")]
488 #[deprecated]
489 #[unsafe(method(getElementsByName:))]
490 #[unsafe(method_family = none)]
491 pub unsafe fn getElementsByName(
492 &self,
493 element_name: Option<&NSString>,
494 ) -> Option<Retained<DOMNodeList>>;
495
496 #[cfg(feature = "DOMElement")]
497 #[unsafe(method(elementFromPoint:y:))]
498 #[unsafe(method_family = none)]
499 pub unsafe fn elementFromPoint_y(&self, x: c_int, y: c_int)
500 -> Option<Retained<DOMElement>>;
501
502 #[cfg(feature = "DOMCSSStyleDeclaration")]
503 #[unsafe(method(createCSSStyleDeclaration))]
504 #[unsafe(method_family = none)]
505 pub unsafe fn createCSSStyleDeclaration(&self) -> Option<Retained<DOMCSSStyleDeclaration>>;
506
507 #[cfg(all(feature = "DOMCSSStyleDeclaration", feature = "DOMElement"))]
508 #[unsafe(method(getComputedStyle:pseudoElement:))]
509 #[unsafe(method_family = none)]
510 pub unsafe fn getComputedStyle_pseudoElement(
511 &self,
512 element: Option<&DOMElement>,
513 pseudo_element: Option<&NSString>,
514 ) -> Option<Retained<DOMCSSStyleDeclaration>>;
515
516 #[cfg(all(feature = "DOMCSSRuleList", feature = "DOMElement"))]
517 #[unsafe(method(getMatchedCSSRules:pseudoElement:))]
518 #[unsafe(method_family = none)]
519 pub unsafe fn getMatchedCSSRules_pseudoElement(
520 &self,
521 element: Option<&DOMElement>,
522 pseudo_element: Option<&NSString>,
523 ) -> Option<Retained<DOMCSSRuleList>>;
524
525 #[cfg(all(feature = "DOMCSSRuleList", feature = "DOMElement"))]
526 #[unsafe(method(getMatchedCSSRules:pseudoElement:authorOnly:))]
527 #[unsafe(method_family = none)]
528 pub unsafe fn getMatchedCSSRules_pseudoElement_authorOnly(
529 &self,
530 element: Option<&DOMElement>,
531 pseudo_element: Option<&NSString>,
532 author_only: bool,
533 ) -> Option<Retained<DOMCSSRuleList>>;
534
535 #[cfg(feature = "DOMNodeList")]
536 #[unsafe(method(getElementsByClassName:))]
537 #[unsafe(method_family = none)]
538 pub unsafe fn getElementsByClassName(
539 &self,
540 class_names: Option<&NSString>,
541 ) -> Option<Retained<DOMNodeList>>;
542
543 #[unsafe(method(hasFocus))]
544 #[unsafe(method_family = none)]
545 pub unsafe fn hasFocus(&self) -> bool;
546
547 #[unsafe(method(webkitCancelFullScreen))]
548 #[unsafe(method_family = none)]
549 pub unsafe fn webkitCancelFullScreen(&self);
550
551 #[cfg(feature = "DOMElement")]
552 #[deprecated]
553 #[unsafe(method(getElementById:))]
554 #[unsafe(method_family = none)]
555 pub unsafe fn getElementById(
556 &self,
557 element_id: Option<&NSString>,
558 ) -> Option<Retained<DOMElement>>;
559
560 #[cfg(feature = "DOMElement")]
561 #[unsafe(method(querySelector:))]
562 #[unsafe(method_family = none)]
563 pub unsafe fn querySelector(
564 &self,
565 selectors: Option<&NSString>,
566 ) -> Option<Retained<DOMElement>>;
567
568 #[cfg(feature = "DOMNodeList")]
569 #[unsafe(method(querySelectorAll:))]
570 #[unsafe(method_family = none)]
571 pub unsafe fn querySelectorAll(
572 &self,
573 selectors: Option<&NSString>,
574 ) -> Option<Retained<DOMNodeList>>;
575 );
576}
577
578#[cfg(all(
580 feature = "DOMNode",
581 feature = "DOMObject",
582 feature = "WebScriptObject"
583))]
584impl DOMDocument {
585 extern_methods!(
586 #[deprecated]
587 #[unsafe(method(init))]
588 #[unsafe(method_family = init)]
589 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
590 );
591}
592
593#[cfg(all(
595 feature = "DOMNode",
596 feature = "DOMObject",
597 feature = "WebScriptObject"
598))]
599impl DOMDocument {
600 extern_methods!(
601 #[unsafe(method(new))]
602 #[unsafe(method_family = new)]
603 pub unsafe fn new() -> Retained<Self>;
604 );
605}
606
607#[cfg(all(
609 feature = "DOMNode",
610 feature = "DOMObject",
611 feature = "WebScriptObject"
612))]
613impl DOMDocument {
614 extern_methods!(
615 #[cfg(all(feature = "DOMCharacterData", feature = "DOMProcessingInstruction"))]
616 #[deprecated]
617 #[unsafe(method(createProcessingInstruction::))]
618 #[unsafe(method_family = none)]
619 pub unsafe fn createProcessingInstruction(
620 &self,
621 target: Option<&NSString>,
622 data: Option<&NSString>,
623 ) -> Option<Retained<DOMProcessingInstruction>>;
624
625 #[deprecated]
626 #[unsafe(method(importNode::))]
627 #[unsafe(method_family = none)]
628 pub unsafe fn importNode(
629 &self,
630 imported_node: Option<&DOMNode>,
631 deep: bool,
632 ) -> Option<Retained<DOMNode>>;
633
634 #[cfg(feature = "DOMElement")]
635 #[deprecated]
636 #[unsafe(method(createElementNS::))]
637 #[unsafe(method_family = none)]
638 pub unsafe fn createElementNS(
639 &self,
640 namespace_uri: Option<&NSString>,
641 qualified_name: Option<&NSString>,
642 ) -> Option<Retained<DOMElement>>;
643
644 #[cfg(feature = "DOMAttr")]
645 #[deprecated]
646 #[unsafe(method(createAttributeNS::))]
647 #[unsafe(method_family = none)]
648 pub unsafe fn createAttributeNS(
649 &self,
650 namespace_uri: Option<&NSString>,
651 qualified_name: Option<&NSString>,
652 ) -> Option<Retained<DOMAttr>>;
653
654 #[cfg(feature = "DOMNodeList")]
655 #[deprecated]
656 #[unsafe(method(getElementsByTagNameNS::))]
657 #[unsafe(method_family = none)]
658 pub unsafe fn getElementsByTagNameNS(
659 &self,
660 namespace_uri: Option<&NSString>,
661 local_name: Option<&NSString>,
662 ) -> Option<Retained<DOMNodeList>>;
663
664 #[cfg(all(feature = "DOMNodeFilter", feature = "DOMNodeIterator"))]
665 #[deprecated]
666 #[unsafe(method(createNodeIterator::::))]
667 #[unsafe(method_family = none)]
668 pub unsafe fn createNodeIterator(
669 &self,
670 root: Option<&DOMNode>,
671 what_to_show: c_uint,
672 filter: Option<&ProtocolObject<dyn DOMNodeFilter>>,
673 expand_entity_references: bool,
674 ) -> Option<Retained<DOMNodeIterator>>;
675
676 #[cfg(all(feature = "DOMNodeFilter", feature = "DOMTreeWalker"))]
677 #[deprecated]
678 #[unsafe(method(createTreeWalker::::))]
679 #[unsafe(method_family = none)]
680 pub unsafe fn createTreeWalker(
681 &self,
682 root: Option<&DOMNode>,
683 what_to_show: c_uint,
684 filter: Option<&ProtocolObject<dyn DOMNodeFilter>>,
685 expand_entity_references: bool,
686 ) -> Option<Retained<DOMTreeWalker>>;
687
688 #[cfg(all(feature = "DOMCSSStyleDeclaration", feature = "DOMElement"))]
689 #[deprecated]
690 #[unsafe(method(getOverrideStyle::))]
691 #[unsafe(method_family = none)]
692 pub unsafe fn getOverrideStyle(
693 &self,
694 element: Option<&DOMElement>,
695 pseudo_element: Option<&NSString>,
696 ) -> Option<Retained<DOMCSSStyleDeclaration>>;
697
698 #[cfg(all(feature = "DOMXPathExpression", feature = "DOMXPathNSResolver"))]
699 #[deprecated]
700 #[unsafe(method(createExpression::))]
701 #[unsafe(method_family = none)]
702 pub unsafe fn createExpression(
703 &self,
704 expression: Option<&NSString>,
705 resolver: Option<&ProtocolObject<dyn DOMXPathNSResolver>>,
706 ) -> Option<Retained<DOMXPathExpression>>;
707
708 #[cfg(all(feature = "DOMXPathNSResolver", feature = "DOMXPathResult"))]
709 #[deprecated]
710 #[unsafe(method(evaluate:::::))]
711 #[unsafe(method_family = none)]
712 pub unsafe fn evaluate(
713 &self,
714 expression: Option<&NSString>,
715 context_node: Option<&DOMNode>,
716 resolver: Option<&ProtocolObject<dyn DOMXPathNSResolver>>,
717 r#type: c_ushort,
718 in_result: Option<&DOMXPathResult>,
719 ) -> Option<Retained<DOMXPathResult>>;
720
721 #[cfg(all(feature = "DOMCSSStyleDeclaration", feature = "DOMElement"))]
722 #[deprecated]
723 #[unsafe(method(getComputedStyle::))]
724 #[unsafe(method_family = none)]
725 pub unsafe fn getComputedStyle(
726 &self,
727 element: Option<&DOMElement>,
728 pseudo_element: Option<&NSString>,
729 ) -> Option<Retained<DOMCSSStyleDeclaration>>;
730 );
731}