Directive represents a DOCTYPE directive token. When obtained from [Decoder], the bytes in the Data field are actual only until the next call to [Decoder.Token]. To retain the data, use the [Directive.Clone] method.
| 98 | // When obtained from [Decoder], the bytes in the Data field are actual only |
| 99 | // until the next call to [Decoder.Token]. To retain the data, use the [Directive.Clone] method. |
| 100 | type Directive struct { |
| 101 | Data []byte |
| 102 | } |
| 103 | |
| 104 | // Clone creates a deep copy of the Directive. |
| 105 | func (d *Directive) Clone() *Directive { |
nothing calls this directly
no outgoing calls
no test coverage detected