<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-parser-algorithms](./css-parser-algorithms.md) &gt; [WhitespaceNode](./css-parser-algorithms.whitespacenode.md)

## WhitespaceNode class

**Signature:**

```typescript
export declare class WhitespaceNode 
```

## Constructors

<table><thead><tr><th>

Constructor


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[(constructor)(value)](./css-parser-algorithms.whitespacenode._constructor_.md)


</td><td>


</td><td>

Constructs a new instance of the `WhitespaceNode` class


</td></tr>
</tbody></table>

## Properties

<table><thead><tr><th>

Property


</th><th>

Modifiers


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[type](./css-parser-algorithms.whitespacenode.type.md)


</td><td>


</td><td>

[ComponentValueType](./css-parser-algorithms.componentvaluetype.md)


</td><td>

The node type, always `ComponentValueType.WhiteSpace`


</td></tr>
<tr><td>

[value](./css-parser-algorithms.whitespacenode.value.md)


</td><td>


</td><td>

Array&lt;CSSToken&gt;


</td><td>

The list of consecutive whitespace tokens.


</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[tokens()](./css-parser-algorithms.whitespacenode.tokens.md)


</td><td>


</td><td>

Retrieve the tokens for the current whitespace. This is the inverse of parsing from a list of tokens.


</td></tr>
<tr><td>

[toString()](./css-parser-algorithms.whitespacenode.tostring.md)


</td><td>


</td><td>

Convert the current whitespace to a string. This is not a true serialization. It is purely a concatenation of the string representation of the tokens.


</td></tr>
</tbody></table>

