Skip to content

Commit 45d7302

Browse files
committed
Add a few minor details to CSS/Canvas/Element.classList
1 parent c47123e commit 45d7302

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

content/CSS/cssstyledeclaration.jsdoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ instance.counterReset : String
291291
----
292292
instance.cursor : String
293293

294-
294+
The shape of the mouse cursor while over the styled element.
295295

296296
<htmlexample>
297297
<body></body>
@@ -320,6 +320,9 @@ cursorTypes.forEach(function(type) {
320320
instance.direction : String
321321
----
322322
instance.display : String
323+
324+
See also %%/HTMLElement#hidden|**HTMLElement.hidden**%%.
325+
323326
----
324327
instance.dominantBaseline : String
325328

content/DOM/htmlcanvaselement.jsdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Returns a **'data:'** string representation of the canvas. **type** can be
3838
When using **'image/jgeg'**, you may pass an additional value between
3939
**0.0** and **1.0** to change the compression rate.
4040

41-
Note, if you are using WebGL, you must paint to the canvas immediately before
41+
Note, if you are using %%/WebGLRenderingContext|WebGL%%, you must paint to the canvas immediately before
4242
calling **toDataURL**, or set %%WebGLContextAttributes#preserveDrawingBuffer|**preserveDrawingBuffer**%%
4343
to **true** to keep the buffer available after the browser has displayed the
4444
contents.

content/DOM/htmlelement.jsdoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,16 @@ http://www.w3.org/TR/html5/dom.html#dom-dir
129129
----
130130
instance.className : String
131131

132+
A space separated list of CSS class names for this element. Corresponds to the
133+
**class** attribute in HTML. See %%#classList|**classList**%% for an easier way
134+
to manipulate the classes.
135+
132136

133137
----
134138
instance.classList : DOMTokenList
135139

140+
An object that makes it easy to manipulate the class names applied to this element.
141+
See also %%#className|**className**%%.
136142

137143
<htmlexample>
138144
<style>

content/JavaScript/string.jsdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ console.log('hey'.localeCompare('hi'));
153153

154154
var x = ['foo', 'bar', 'baz'];
155155
console.log(x.sort(function(a, b) {
156-
return a.localeCompare(b)
156+
return a.localeCompare(b);
157157
}));
158158
</example>
159159

0 commit comments

Comments
 (0)