<feed xmlns='http://www.w3.org/2005/Atom'>
<title>html5tokenizer/tests, branch main</title>
<subtitle>Fork of html5gum with code span support</subtitle>
<id>http://git.push-f.com/html5tokenizer/atom/tests?h=main</id>
<link rel='self' href='http://git.push-f.com/html5tokenizer/atom/tests?h=main'/>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/'/>
<updated>2023-09-28T09:00:01Z</updated>
<entry>
<title>chore: rename integration tests</title>
<updated>2023-09-28T09:00:01Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-27T07:25:12Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=b027ecdb397c2e378491f847660f8eeb740e8cf6'/>
<id>urn:sha1:b027ecdb397c2e378491f847660f8eeb740e8cf6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: add span to Trace::Char</title>
<updated>2023-09-28T08:36:08Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-15T07:40:55Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=d46de6ab592e57a31fef13cfc015c4ce818e8f47'/>
<id>urn:sha1:d46de6ab592e57a31fef13cfc015c4ce818e8f47</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: add offset to Trace::EndOfFile</title>
<updated>2023-09-28T08:36:08Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-15T06:15:29Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=e0434737b20b32a8d7238a134c3662fa9075eb6d'/>
<id>urn:sha1:e0434737b20b32a8d7238a134c3662fa9075eb6d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>break!: move offsets out of Token</title>
<updated>2023-09-28T08:36:08Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-10T17:37:34Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=852d5c6f2e65a5ab466662ae1c649a0ed25c70a9'/>
<id>urn:sha1:852d5c6f2e65a5ab466662ae1c649a0ed25c70a9</id>
<content type='text'>
Previously the Token enum contained the offsets using the O generic
type parameter, which could be a usize if you're tracking offsets or
a zero-sized type if you didn't care about offsets. This commit moves
all the byte offset and syntax information to a new Trace enum,
which has several advantages:

* Traces can now easily be stored separately, while the tokens are
  fed to the tree builder. (The tree builder only has to keep track
  of which tree nodes originate from which tokens.)

* No needless generics for functions that take a token but don't
  care about offsets (a tree construction implementation is bound
  to have many of such functions).

* The FromIterator&lt;(String, String)&gt; impl for AttributeMap no longer
  has to specify arbitrary values for the spans and the value_syntax).

* The PartialEq implementation of Token is now much more useful
  (since it no longer includes all the offsets).

* The Debug formatting of Token is now more readable
  (since it no longer includes all the offsets).

* Function pointers to functions accepting tokens are possible.
  (Since function pointer types may not have generic parameters.)
</content>
</entry>
<entry>
<title>refactor: make TracingEmitter only work with usizes</title>
<updated>2023-09-28T08:36:08Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-12T07:26:06Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=a03cea75d9d120a7519be91ec872b143b5d74276'/>
<id>urn:sha1:a03cea75d9d120a7519be91ec872b143b5d74276</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: add BasicEmitter stub</title>
<updated>2023-09-28T08:36:08Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-12T07:03:56Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=14bc6f2cceed0fa578d6a1195266885bf57a5d4c'/>
<id>urn:sha1:14bc6f2cceed0fa578d6a1195266885bf57a5d4c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>break!: rename DefaultEmitter to TracingEmitter</title>
<updated>2023-09-28T08:36:08Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-12T06:19:00Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=ad6ac5f0a825775c231e76cdc9016e61e54f4141'/>
<id>urn:sha1:ad6ac5f0a825775c231e76cdc9016e61e54f4141</id>
<content type='text'>
</content>
</entry>
<entry>
<title>break!: remove Token::Error</title>
<updated>2023-09-28T08:36:01Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-08-29T11:09:44Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=826907487e2b593f1c54e98b59fe2f6eb8cb6937'/>
<id>urn:sha1:826907487e2b593f1c54e98b59fe2f6eb8cb6937</id>
<content type='text'>
An error isn't a token (in general and also according to the spec).
You shouldn't have to filter out errors when you're just interested
in tokens but most importantly having errors in the Token enum is
annoying when implementing tree construction (since the spec conditions
exhaustively cover all Token variants except Token::Error).
</content>
</entry>
<entry>
<title>refactor: make labeler closures take NaiveParser</title>
<updated>2023-09-28T05:26:44Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-04T07:27:30Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=82961e1f8c85d6961410fd007ca2127cee594848'/>
<id>urn:sha1:82961e1f8c85d6961410fd007ca2127cee594848</id>
<content type='text'>
The second next commit will move errors out of the Token enum
but we still want to be able to test that the spans of errors
are character encoding independent.
</content>
</entry>
<entry>
<title>refactor: make parser helper fn generic over reader</title>
<updated>2023-09-28T05:26:44Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-04T07:15:30Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=9dd2ac1c95c949066e341837650c3211769342c3'/>
<id>urn:sha1:9dd2ac1c95c949066e341837650c3211769342c3</id>
<content type='text'>
</content>
</entry>
</feed>
