-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVoidElement.js
More file actions
55 lines (48 loc) · 929 Bytes
/
VoidElement.js
File metadata and controls
55 lines (48 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
'use strict';
/*
global module,
require
*/
const Element = require( './Element' );
/**
* Provides a document element that can be populated with text and attributes only. This
* is the most basic building block of documentation items and the prototype of all other document
* elements without children nodes.
*
* @class
* @extends Element
* @extends Node
*/
class VoidElement extends Element {
// noinspection JSCheckFunctionSignatures
/**
* Dummy appendChild method
*
* @return {null}
*/
appendChild () {
return null;
}
// noinspection JSCheckFunctionSignatures
/**
* Dummy prependChild method
*
* @return {null}
*/
prependChild () {
return null;
}
// noinspection JSCheckFunctionSignatures
/**
* Dummy removeChild method
*
* @return {null}
*/
removeChild () {
return null;
}
}
/**
* @type {VoidElement}
*/
module.exports = VoidElement;