# html-to-vdom **Repository Path**: mirrors_floatdrop/html-to-vdom ## Basic Information - **Project Name**: html-to-vdom - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README html-to-vdom [](https://travis-ci.org/TimBeyer/html-to-vdom) [](https://coveralls.io/github/TimBeyer/html-to-vdom?branch=master) [](https://www.bithound.io/github/TimBeyer/html-to-vdom) ============ About ----- This is yet another library to convert HTML into a [vtree](https://github.com/Matt-Esch/vtree). It's used in conjunction with [virtual-dom](https://github.com/Matt-Esch/virtual-dom) to convert template based views into `virtual-dom` views. Note ---- As of v0.7.0, HTML attribute parsing has been improved by using [React's list of attributes and properties](https://github.com/facebook/react/blob/c265504fe2fdeadf0e5358879a3c141628b37a23/src/renderers/dom/shared/HTMLDOMPropertyConfig.js) to decide what to set on the VNode. This means that you should experience better compatibility and full support for HTML5. Custom attributes are also no longer lower cased automatically. Inline SVG is not yet supported, but will be worked on for the next version. As of v0.6.0, converting sibling nodes without an enclosing parent tag returns an array of type `VNode` instead of throwing an error As of v0.5.1, `html-to-vdom` no longer supports browsers without a full ES5 implementation. As of v0.3.0, the VNode and VText classes need to be passed in during library initialization from the `virtual-dom` module you are using. This is to reduce incompatibilties you might have due to depending on a different version of `virtual-dom` than the one this library would use. Usage ----- ```javascript var VNode = require('virtual-dom/vnode/vnode'); var VText = require('virtual-dom/vnode/vtext'); var convertHTML = require('html-to-vdom')({ VNode: VNode, VText: VText }); var html = '