diff --git a/README.md b/README.md index d7a4d78..94c452c 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@ console.log(root.querySelector('#list')); // classNames: [] } ], // id: 'list', // classNames: [] } +console.log(root.toString()); +// ``` ## API @@ -130,3 +132,12 @@ Get attributes ### HTMLElement#rawAttributes Get escaped (as-it) attributes + +### HTMLElement#toString() +Same as [outerHTML](#htmlelementouterhtml) + +### HTMLElement#innerHTML +Get innerHTML. + +### HTMLElement#outerHTML +Get outerHTML. diff --git a/t.html b/t.html deleted file mode 100644 index eff4ade..0000000 --- a/t.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - Document - - - - - \ No newline at end of file