@@ -339,8 +339,6 @@ function addElement(elt, pInst, media) {
339339
340340/**
341341 * Creates a <div></div> element in the DOM with given inner HTML.
342- * Appends to the container node if one is specified, otherwise
343- * appends to body.
344342 *
345343 * @method createDiv
346344 * @param {String } [html] inner HTML for element created
@@ -354,8 +352,6 @@ function addElement(elt, pInst, media) {
354352/**
355353 * Creates a <p></p> element in the DOM with given inner HTML. Used
356354 * for paragraph length text.
357- * Appends to the container node if one is specified, otherwise
358- * appends to body.
359355 *
360356 * @method createP
361357 * @param {String } [html] inner HTML for element created
@@ -368,8 +364,6 @@ function addElement(elt, pInst, media) {
368364
369365/**
370366 * Creates a <span></span> element in the DOM with given inner HTML.
371- * Appends to the container node if one is specified, otherwise
372- * appends to body.
373367 *
374368 * @method createSpan
375369 * @param {String } [html] inner HTML for element created
@@ -392,8 +386,6 @@ tags.forEach(function(tag) {
392386/**
393387 * Creates an <img> element in the DOM with given src and
394388 * alternate text.
395- * Appends to the container node if one is specified, otherwise
396- * appends to body.
397389 *
398390 * @method createImg
399391 * @param {String } src src path or url for image
@@ -436,8 +428,6 @@ p5.prototype.createImg = function() {
436428
437429/**
438430 * Creates an <a></a> element in the DOM for including a hyperlink.
439- * Appends to the container node if one is specified, otherwise
440- * appends to body.
441431 *
442432 * @method createA
443433 * @param {String } href url of page to link to
@@ -464,8 +454,6 @@ p5.prototype.createA = function(href, html, target) {
464454/**
465455 * Creates a slider <input></input> element in the DOM.
466456 * Use .size() to set the display length of the slider.
467- * Appends to the container node if one is specified, otherwise
468- * appends to body.
469457 *
470458 * @method createSlider
471459 * @param {Number } min minimum value of the slider
@@ -522,8 +510,6 @@ p5.prototype.createSlider = function(min, max, value, step) {
522510 * Creates a <button></button> element in the DOM.
523511 * Use .size() to set the display size of the button.
524512 * Use .mousePressed() to specify behavior on press.
525- * Appends to the container node if one is specified, otherwise
526- * appends to body.
527513 *
528514 * @method createButton
529515 * @param {String } label label displayed on the button
@@ -942,8 +928,6 @@ p5.prototype.createColorPicker = function(value) {
942928/**
943929 * Creates an <input></input> element in the DOM for text input.
944930 * Use .<a href="#/p5.Element/size">size()</a> to set the display length of the box.
945- * Appends to the container node if one is specified, otherwise
946- * appends to body.
947931 *
948932 * @method createInput
949933 * @param {String } [value] default value of the input box
@@ -1087,8 +1071,7 @@ function createMedia(pInst, type, src, callback) {
10871071/**
10881072 * Creates an HTML5 <video> element in the DOM for simple playback
10891073 * of audio/video. Shown by default, can be hidden with .<a href="#/p5.Element/hide">hide()</a>
1090- * and drawn into canvas using video(). Appends to the container
1091- * node if one is specified, otherwise appends to body. The first parameter
1074+ * and drawn into canvas using video(). The first parameter
10921075 * can be either a single string path to a video file, or an array of string
10931076 * paths to different formats of the same video. This is useful for ensuring
10941077 * that your video can play across different browsers, as each supports
@@ -1135,12 +1118,11 @@ p5.prototype.createVideo = function(src, callback) {
11351118
11361119/**
11371120 * Creates a hidden HTML5 <audio> element in the DOM for simple audio
1138- * playback. Appends to the container node if one is specified,
1139- * otherwise appends to body. The first parameter
1140- * can be either a single string path to a audio file, or an array of string
1141- * paths to different formats of the same audio. This is useful for ensuring
1142- * that your audio can play across different browsers, as each supports
1143- * different formats. See <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats'>this
1121+ * playback. The first parameter can be either a single string path to a
1122+ * audio file, or an array of string paths to different formats of the same
1123+ * audio. This is useful for ensuring that your audio can play across
1124+ * different browsers, as each supports different formats.
1125+ * See <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats'>this
11441126 * page for further information about supported formats</a>.
11451127 *
11461128 * @method createAudio
@@ -1355,8 +1337,6 @@ p5.prototype.createCapture = function() {
13551337
13561338/**
13571339 * Creates element with given tag in the DOM with given content.
1358- * Appends to the container node if one is specified, otherwise
1359- * appends to body.
13601340 *
13611341 * @method createElement
13621342 * @param {String } tag tag for the new element
0 commit comments