All files / src/NodeLike/ParentNodeLike/ElementLike/AttributeLike AttributeLike.ts

16.67% Statements 1/6
0% Branches 0/2
0% Functions 0/2
16.67% Lines 1/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                              2x
import IAttributeLike from './IAttributeLike';
class AttributeLike implements IAttributeLike {
    readonly name:      string;
    readonly localName: string;
    readonly value:     string;
    readonly prefix:    null = null;
    constructor(name: string, value?: string) {
        this.name = name;
        this.localName = name;
        this.value = value || '';
    }
 
    specified(): true { return true; }
}
 
export default AttributeLike;