mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-20 20:00:33 +03:00
feat(plugin-helper): lowercase resulting tag names (#42)
This commit is contained in:
committed by
GitHub
parent
001de51f34
commit
597c2a9008
@@ -59,7 +59,7 @@ describe('Parser', () => {
|
|||||||
'Foo',
|
'Foo',
|
||||||
' ',
|
' ',
|
||||||
{
|
{
|
||||||
tag: 'Bar',
|
tag: 'bar',
|
||||||
attrs: {},
|
attrs: {},
|
||||||
content: []
|
content: []
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { getNodeLength, appendToNode } from './index';
|
|||||||
|
|
||||||
class TagNode {
|
class TagNode {
|
||||||
constructor(tag, attrs, content) {
|
constructor(tag, attrs, content) {
|
||||||
this.tag = tag;
|
this.tag = tag.toLowerCase();
|
||||||
this.attrs = attrs;
|
this.attrs = attrs;
|
||||||
this.content = [].concat(content);
|
this.content = [].concat(content);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user