(
tag: string,
attributes: HTMLSerializerAttributes = {},
style?: HTMLSerializerStyle,
children: string = '',
)
| 68 | }, |
| 69 | |
| 70 | create( |
| 71 | tag: string, |
| 72 | attributes: HTMLSerializerAttributes = {}, |
| 73 | style?: HTMLSerializerStyle, |
| 74 | children: string = '', |
| 75 | ) { |
| 76 | const attributesString = htmlAttributesToString(attributes) |
| 77 | const styleString = style ? cssStyleToString(style) : '' |
| 78 | const lineStyle = styleString ? ` style="${styleString}"` : "" |
| 79 | |
| 80 | return `<${tag} ${attributesString}${lineStyle}>${children}</${tag}>` |
| 81 | }, |
| 82 | |
| 83 | mergeOptions<T = HTMLSerializerAttributes | HTMLSerializerStyle>( |
| 84 | node: Node, |
nothing calls this directly
no test coverage detected
searching dependent graphs…