raw and comment

This commit is contained in:
harttle
2016-06-20 01:10:43 +08:00
parent 54bc206d36
commit 8053d7021f
16 changed files with 105 additions and 51 deletions
+2
View File
@@ -17,6 +17,7 @@ function parse(html) {
htmlFragment = html.slice(idx, result.index);
tokens.push({
type: 'html',
raw: htmlFragment,
value: htmlFragment
});
}
@@ -47,6 +48,7 @@ function parse(html) {
htmlFragment = html.slice(idx, html.length);
tokens.push({
type: 'html',
raw: htmlFragment,
value: htmlFragment
});
}