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 53ae242 commit 330c4daCopy full SHA for 330c4da
src/parse.js
@@ -9,7 +9,6 @@ export default function parse(html, options) {
9
options.components || (options.components = empty)
10
const result = []
11
const arr = []
12
- const byTag = {}
13
let current
14
let level = -1
15
let inComponent = false
@@ -48,8 +47,6 @@ export default function parse(html, options) {
48
47
})
49
}
50
51
- byTag[current.tagName] = current
52
-
53
// if we're at root, push new base node
54
if (level === 0) {
55
result.push(current)
test/parse.js
@@ -2,8 +2,6 @@
2
import test from 'tape'
3
import HTML from '../src/index'
4
5
-console.log(HTML)
6
7
test('parse', function (t) {
8
let html = '<div class="oh"><p></p></div>'
let parsed = HTML.parse(html)
0 commit comments