Skip to content

Commit

Permalink
Update supported elements (#44)
Browse files Browse the repository at this point in the history
In #19 we resolved that the elements supported by EditContext should be those that work with attachShadow(), plus <canvas>.

Update the EditContext spec accordingly, and throw when the author attempts to associate an "unsupported" element with an EditContext.

Resolves #19.
  • Loading branch information
dandclark authored May 24, 2023
1 parent ba27824 commit 9ce149f
Showing 1 changed file with 1 addition and 53 deletions.
54 changes: 1 addition & 53 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ <h3>Extensions to the HTMLElement interface</h3>
<dd>None</dd>
</dl>
<ol>
<li>If [=this=]'s [=Element/local name=] is neither a [=valid shadow host name=] nor "<code>canvas</code>", then [=exception/throw=] a {{"NotSupportedError"}} {{DOMException}}.</li>
<li>Let |oldEditContext| be the value of [=this=]'s internal [[\EditContext]] slot.</li>
<li>Set [=this=]'s internal [[\EditContext]] slot to be |editContext|</li>
<li>If |oldEditContext| is the [=active EditContext=]
Expand Down Expand Up @@ -971,59 +972,6 @@ <h3 id="editcontext-interface">EditContext Interface</h3>
<dt>oncompositionend</dt>
<dd><p>The event handler for the <a href='https://w3c.github.io/uievents/#event-type-compositionend'>compositionend</a> event.</p></dd>
</dl>
<section>
<h3>Supported elements</h3>
<p>Below is the list of elements that can be associated with {{EditContext}}: abbr,
address,
article,
aside,
b,
blockquote,
canvas,
cite,
code,
del,
details,
dfn,
div,
dl, dd, dt,
em,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
hgroup,
i,
ins,
kbd,
label,
mark,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strong,
sub,
sup,
table,
time,
u, and
ul.
</p>
</section>

</section>

<section data-dfn-for="EditContextEvents">
Expand Down

0 comments on commit 9ce149f

Please sign in to comment.