Skip to content

Commit 60e7ff1

Browse files
committed
Make HTML in solution to 15.3 match the example code
Closes marijnh#337
1 parent 7bbcc97 commit 60e7ff1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

code/solutions/15_3_tabs.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!doctype html>
22

3-
<div id="wrapper">
3+
<tab-panel>
44
<div data-tabname="one">Tab one</div>
55
<div data-tabname="two">Tab two</div>
66
<div data-tabname="three">Tab three</div>
7-
</div>
7+
</tab-panel>
88
<script>
99
function asTabs(node) {
1010
let tabs = Array.from(node.childNodes)
@@ -31,5 +31,5 @@
3131
selectTab(tabs[0]);
3232
}
3333

34-
asTabs(document.querySelector("#wrapper"));
34+
asTabs(document.querySelector("tab-panel"));
3535
</script>

0 commit comments

Comments
 (0)