版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HTMLIFrameElement.d.ts 2.5 KiB

пре 1 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. import Event from '../../event/Event';
  2. import IWindow from '../../window/IWindow';
  3. import IDocument from '../document/IDocument';
  4. import HTMLElement from '../html-element/HTMLElement';
  5. import INode from '../node/INode';
  6. import IFrameCrossOriginWindow from './IFrameCrossOriginWindow';
  7. import IHTMLIFrameElement from './IHTMLIFrameElement';
  8. /**
  9. * HTML Iframe Element.
  10. *
  11. * Reference:
  12. * https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.
  13. */
  14. export default class HTMLIFrameElement extends HTMLElement implements IHTMLIFrameElement {
  15. #private;
  16. onload: (event: Event) => void | null;
  17. onerror: (event: Event) => void | null;
  18. /**
  19. * Returns source.
  20. *
  21. * @returns Source.
  22. */
  23. get src(): string;
  24. /**
  25. * Sets source.
  26. *
  27. * @param src Source.
  28. */
  29. set src(src: string);
  30. /**
  31. * Returns allow.
  32. *
  33. * @returns Allow.
  34. */
  35. get allow(): string;
  36. /**
  37. * Sets allow.
  38. *
  39. * @param allow Allow.
  40. */
  41. set allow(allow: string);
  42. /**
  43. * Returns height.
  44. *
  45. * @returns Height.
  46. */
  47. get height(): string;
  48. /**
  49. * Sets height.
  50. *
  51. * @param height Height.
  52. */
  53. set height(height: string);
  54. /**
  55. * Returns width.
  56. *
  57. * @returns Width.
  58. */
  59. get width(): string;
  60. /**
  61. * Sets width.
  62. *
  63. * @param width Width.
  64. */
  65. set width(width: string);
  66. /**
  67. * Returns name.
  68. *
  69. * @returns Name.
  70. */
  71. get name(): string;
  72. /**
  73. * Sets name.
  74. *
  75. * @param name Name.
  76. */
  77. set name(name: string);
  78. /**
  79. * Returns sandbox.
  80. *
  81. * @returns Sandbox.
  82. */
  83. get sandbox(): string;
  84. /**
  85. * Sets sandbox.
  86. *
  87. * @param sandbox Sandbox.
  88. */
  89. set sandbox(sandbox: string);
  90. /**
  91. * Returns srcdoc.
  92. *
  93. * @returns Srcdoc.
  94. */
  95. get srcdoc(): string;
  96. /**
  97. * Sets sandbox.
  98. *
  99. * @param srcdoc Srcdoc.
  100. */
  101. set srcdoc(srcdoc: string);
  102. /**
  103. * Returns content document.
  104. *
  105. * @returns Content document.
  106. */
  107. get contentDocument(): IDocument | null;
  108. /**
  109. * Returns content window.
  110. *
  111. * @returns Content window.
  112. */
  113. get contentWindow(): IWindow | IFrameCrossOriginWindow | null;
  114. /**
  115. * @override
  116. */
  117. _connectToNode(parentNode?: INode): void;
  118. /**
  119. * Clones a node.
  120. *
  121. * @override
  122. * @param [deep=false] "true" to clone deep.
  123. * @returns Cloned node.
  124. */
  125. cloneNode(deep?: boolean): IHTMLIFrameElement;
  126. }