Skip to content

html5ever: simplify Tokenizer<Sink>::finish_attribute - #765

Merged
simonwuelker merged 1 commit into
servo:mainfrom
niklak:refactor/tokenizer-finish-attribute
Jul 26, 2026
Merged

html5ever: simplify Tokenizer<Sink>::finish_attribute#765
simonwuelker merged 1 commit into
servo:mainfrom
niklak:refactor/tokenizer-finish-attribute

Conversation

@niklak

@niklak niklak commented Jul 26, 2026

Copy link
Copy Markdown
Contributor
  • LocalName compares directly (without pointers)
  • self.current_attr_name clears after LocalName is built, since it's common logic.

modified: html5ever/src/tokenizer/mod.rs

- `LocalName` compares directly (without pointers)
- `self.current_attr_name` clears after `LocalName` is built, since it's common logic.
	modified:   html5ever/src/tokenizer/mod.rs

@simonwuelker simonwuelker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. There are lots of little cleanups like this that we should do eventually.

@simonwuelker
simonwuelker added this pull request to the merge queue Jul 26, 2026
Merged via the queue into servo:main with commit d37464c Jul 26, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants