All files / src/NodeLike/CharacterDataLike/ProcessingInstructionLike AbstractProcessingInstructionLike.ts

28.57% Statements 2/7
0% Branches 0/1
0% Functions 0/2
28.57% Lines 2/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 222x                                         2x
import AbstractCharacterDataLike  from '../AbstractCharacterDataLike';
import IDocumentLike              from '../../ParentNodeLike/DocumentLike/IDocumentLike';
import IProcessingInstructionLike from './IProcessingInstructionLike';
abstract class AbstractProcessingInstructionLike extends AbstractCharacterDataLike implements IProcessingInstructionLike {
  abstract readonly nodeType: 7;
  abstract target:            string;  
  protected __target:         string = '';
 
  constructor(target: string, data: string, document: IDocumentLike) {
    super(data, document);
    this.__target = target;
  }
 
  cloneNode(deep: boolean = false): IProcessingInstructionLike {
    /* Get rid of VS not-used error. */deep;
    return this.ownerDocument.createProcessingInstruction(
      this.target,
      this.data);
  }
}
 
export default AbstractProcessingInstructionLike;