Skip to content

Commit

Permalink
id -> of and editor accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Heydon committed Dec 29, 2018
1 parent 05c6702 commit 6b12e4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion editor.html
@@ -1,3 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand Down Expand Up @@ -49,7 +51,7 @@
<body>
<div class="wrapper">
<form role="form">
<textarea id="editor">
<textarea id="editor" aria-label="code editor">
<!--
see the component docs:
https://github.com/Heydon/bruck#components
Expand Down
6 changes: 3 additions & 3 deletions js/components/Clone.js
Expand Up @@ -3,12 +3,12 @@
export default class Clone extends HTMLElement {
constructor() {
super();
this.id = this.getAttribute('of');
if (!this.id) {
this.of = this.getAttribute('of');
if (!this.of) {
console.error('Each <c-lone> element must have an `of` attribute pointing to a <template> id.');
return;
}
this.template = document.getElementById(this.id);
this.template = document.getElementById(this.of);
Promise.all([
customElements.whenDefined('g-rid'),
customElements.whenDefined('s-tack')
Expand Down

0 comments on commit 6b12e4a

Please sign in to comment.