All Projects → doodlewind → HTML-Toy-Parser

doodlewind / HTML-Toy-Parser

Licence: other
一个玩具级的 HTML 转虚拟 DOM 编译器

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Toy HTML Compiler

一个玩具级的 HTML 转虚拟 DOM 编译器

特性

  • 解析 HTML 字符串到 JS 虚拟 DOM 对象
  • 50 行内的 Parser

支持

  • 类似 <div>123</div> <a>456</a> 的任意多个标签并列
  • 类似 <h2><small>123</small></h2> 的任意层嵌套标签

不支持

  • 类似 <input/> 的自闭合标签
  • 类似 <h2>123<small>456</small></h2> 的混合嵌套

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].