We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b714ce3 commit 2a4e12eCopy full SHA for 2a4e12e
src/wrappers/wrapper.js
@@ -216,9 +216,7 @@ export default class Wrapper implements BaseWrapper {
216
* Returns HTML of element as a string
217
*/
218
html (): string {
219
- const tmp = document.createElement('div')
220
- tmp.appendChild(this.element)
221
- return tmp.innerHTML
+ return this.element.outerHTML
222
}
223
224
/**
0 commit comments