
HTMLElement is the only interface that includes ElementContentEditable in the HTML specification. This makes sense, as Element is also a base class for elements in other specifications such as SVG, which definitely shouldn't be editable. Also adds a test for the attribute based on what Andreas did in the video that added it.
8 lines
161 B
Text
8 lines
161 B
Text
interface HTMLElement : Element {
|
|
|
|
[Reflect] attribute DOMString title;
|
|
[Reflect] attribute DOMString lang;
|
|
|
|
attribute DOMString contentEditable;
|
|
|
|
}
|