版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

25 строки
616 B

  1. import INode from '../nodes/node/INode';
  2. /**
  3. * Utility for converting an element to string.
  4. */
  5. export default class XMLSerializer {
  6. /**
  7. * Renders an element as HTML.
  8. *
  9. * @param root Root element.
  10. * @param [options] Options.
  11. * @param [options.includeShadowRoots] Set to "true" to include shadow roots.
  12. * @returns Result.
  13. */
  14. serializeToString(root: INode, options?: {
  15. includeShadowRoots?: boolean;
  16. }): string;
  17. /**
  18. * Returns attributes as a string.
  19. *
  20. * @param element Element.
  21. * @returns Attributes.
  22. */
  23. private _getAttributes;
  24. }