Fix HTML AST JSON serializer for debugging (#12611)
* Add `JSON.stringify` replacer
* Fix serializer for playground
* Use `opt.parser`
* Consitent style
* lwc
* Revert "lwc"
This reverts commit 799bf357e8b30765944b29639a45b3c326bce615.
Revert "Use `opt.parser`"
This reverts commit 3046f52798ce740ea0ed267bf46c3221606b1fbc.
Revert "Add `JSON.stringify` replacer"
This reverts commit 54266cde61ea8f7cc4b3b0c9714559c93b456923.
* Rewrite `Node` class
* Revert changes in playground
* Revert wrong changes
* Update clean.js
* Set `configurable: true`
* Fix missing `return`
* Fix: "children" and "attrs" are enumerable
* Type check
* Revert unnessary change
Co-authored-by: fisker Cheung <lionkay@gmail.com>