Skip to content

Commit a65dd48

Browse files
committed
fix(attibutes): Fix small template issues
1 parent ae94144 commit a65dd48

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/jsx/attributes.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ declare namespace JSX {
2020
capture?: boolean;
2121
cellPadding?: number | string;
2222
cellSpacing?: number | string;
23-
charSet?: string;
23+
charset?: string;
2424
challenge?: string;
2525
checked?: boolean;
2626
classID?: string;
27-
className?: string;
27+
class?: string;
2828
cols?: number;
2929
colSpan?: number;
3030
content?: string;

test/html-fragments.spec.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
import * as elements from '../src/elements';
23
import { expect } from 'chai';
34
const logger = require('html-differ/lib/logger');
@@ -20,13 +21,15 @@ describe('Simple html structures', () => {
2021
testEqual(`<ul>
2122
<li>1</li>
2223
<li>2</li>
23-
</ul>`, () => <ul><li>1</li><li>2</li></ul>);
24+
</ul>`, () => <ul>{[1, 2].map(li => <li>{li}</li>)}</ul>);
2425
testEqual('<button on-click="doSomething"></button>', () => <button onClick={doSomething}></button>);
26+
testEqual('<div class="class-a"></div>', () => <div class="class-a"></div>);
2527
});
2628

2729
describe('Self-closing html tags', () => {
2830
testEqual('<area>', () => <area></area>);
2931
testEqual('<hr>', () => <hr></hr>);
3032
testEqual('<hr>content</hr>', () => <hr>content</hr>);
33+
testEqual('<meta charset="utf8">', () => <meta charset="utf8"></meta>);
3134
});
3235

0 commit comments

Comments
 (0)