* @param {String} [html] the HTML to be placed inside the element * @param {Boolean} [append] whether to append HTML to existing * @chainable
(...args)
| 382 | * @chainable |
| 383 | */ |
| 384 | html(...args) { |
| 385 | if (args.length === 0) { |
| 386 | return this.elt.innerHTML; |
| 387 | } else if (args[1]) { |
| 388 | this.elt.insertAdjacentHTML('beforeend', args[0]); |
| 389 | return this; |
| 390 | } else { |
| 391 | this.elt.innerHTML = args[0]; |
| 392 | return this; |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | /** |
| 397 | * Sets the element's ID using a given string. |
no outgoing calls
no test coverage detected