Skip to content

Commit d559aa3

Browse files
committed
check html structure + fix for some frameworks
1 parent b1ab3bf commit d559aa3

File tree

14 files changed

+127
-31
lines changed

14 files changed

+127
-31
lines changed

frameworks/keyed/attodom/src/view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = function(store) {
2828
),
2929
h('td', {class: 'col-md-1', onClick: clickHandlerDelete},
3030
h('a', {class: 'remove'},
31-
h('span', {class: 'glyphicon glyphicon-remove remove', 'aria-hidden': ''})
31+
h('span', {class: 'glyphicon glyphicon-remove remove', 'aria-hidden': 'true'})
3232
)
3333
),
3434
h('td', {class: 'col-md-6'})

frameworks/keyed/domvm/src/main.es6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function AppView(vm, store) {
2626
el("div", {class: "container"}, [
2727
JumbotronTpl(store),
2828
TableTpl(store),
29-
el("span", {class: "preloadicon glyphicon glyphicon-remove", "aria-hidden": ""})
29+
el("span", {class: "preloadicon glyphicon glyphicon-remove", "aria-hidden": "true"})
3030
])
3131
])
3232
);
@@ -92,7 +92,7 @@ function RowTpl(item, store, key) {
9292
]),
9393
el("td", {class: "col-md-1"}, [
9494
el("a", {onclick: [store.exec, "delete", item.id]}, [
95-
el("span", {class: "glyphicon glyphicon-remove", "aria-hidden": ""})
95+
el("span", {class: "glyphicon glyphicon-remove", "aria-hidden": "true"})
9696
])
9797
]),
9898
el("td", {class: "col-md-6"})

frameworks/keyed/faster-dom/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8"/>
5-
<title>FastDom-"keyed"</title>
5+
<title>FasterDom-"keyed"</title>
66
<link href="/css/currentStyle.css" rel="stylesheet"/>
77
</head>
88
<body>

frameworks/keyed/faster-dom/src/Main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ class TrComponent extends Component {
7575
]
7676
}
7777
]
78+
},
79+
{
80+
tag: "td",
81+
classList: 'col-md-6'
7882
}
7983
]
8084
}
@@ -129,7 +133,7 @@ class MainContainer extends Component {
129133
children: [
130134
{
131135
tag: "h1",
132-
textValue: 'FastDom-"keyed""'
136+
textValue: 'FastDom-"keyed"'
133137
}
134138
]
135139
},

frameworks/keyed/hullo/src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ function Row(props) {
152152
}
153153
})
154154
]
155+
}),
156+
Td({
157+
span: 6
155158
})
156159
]
157160
);

frameworks/keyed/maquette/src/main.es6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function App() {
1818
h("div.container", [
1919
jumbo.render(),
2020
table.render(),
21-
h("span.preloadicon.glyphicon.glyphicon-remove", {"aria-hidden": ""})
21+
h("span.preloadicon.glyphicon.glyphicon-remove", {"aria-hidden": "true"})
2222
])
2323
])
2424
};
@@ -100,7 +100,7 @@ function Table() {
100100
]),
101101
h("td.col-md-1", [
102102
h("a.remove", [
103-
h("span.glyphicon.glyphicon-remove", {"aria-hidden": ""})
103+
h("span.glyphicon.glyphicon-remove", {"aria-hidden": "true"})
104104
])
105105
]),
106106
h("td.col-md-6")

frameworks/keyed/vidom/src/controller.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class Row extends Component {
2323
<td className="col-md-4">
2424
<a onClick={this._onClick}>{data.label}</a>
2525
</td>
26-
<td className="col-md-1"><a onClick={this._onDelete}><span className="glyphicon glyphicon-remove"></span></a></td>
26+
<td className="col-md-1"><a onClick={this._onDelete}><span className="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
2727
<td className="col-md-6"></td>
2828
</tr>);
2929
}

frameworks/non-keyed/domvm/src/main.es6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function AppView(vm, store) {
2626
el("div", {class: "container"}, [
2727
JumbotronTpl(store),
2828
TableTpl(store),
29-
el("span", {class: "preloadicon glyphicon glyphicon-remove", "aria-hidden": ""})
29+
el("span", {class: "preloadicon glyphicon glyphicon-remove", "aria-hidden": "true"})
3030
])
3131
])
3232
);
@@ -91,7 +91,7 @@ function RowTpl(item, store) {
9191
]),
9292
el("td", {class: "col-md-1"}, [
9393
el("a", {onclick: [store.exec, "delete", item.id]}, [
94-
el("span", {class: "glyphicon glyphicon-remove", "aria-hidden": ""})
94+
el("span", {class: "glyphicon glyphicon-remove", "aria-hidden": "true"})
9595
])
9696
]),
9797
el("td", {class: "col-md-6"})

frameworks/non-keyed/hullo/src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ function Row(props) {
152152
}
153153
})
154154
]
155+
}),
156+
Td({
157+
span: 6
155158
})
156159
]
157160
);

frameworks/non-keyed/literaljs/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ const App = component({
147147
/>
148148
</a>
149149
</td>
150+
<td class="col-md-6"></td>
150151
</tr>
151152
))}
152153
</tbody>

0 commit comments

Comments
 (0)