Skip to content

html5ever: avoid unnecessary attribute clone in TreeBuilder::insert_element. - #766

Open
niklak wants to merge 3 commits into
servo:mainfrom
niklak:refactor/tree-builder-insert-element
Open

html5ever: avoid unnecessary attribute clone in TreeBuilder::insert_element.#766
niklak wants to merge 3 commits into
servo:mainfrom
niklak:refactor/tree-builder-insert-element

Conversation

@niklak

@niklak niklak commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Reordered code in impl TreeBuilder<Handle, Sink>::insert_element to avoid an unnecessary clone of tag attributes.

@niklak
niklak force-pushed the refactor/tree-builder-insert-element branch from 92fab3e to a81c906 Compare August 5, 2026 10:51
@niklak
niklak force-pushed the refactor/tree-builder-insert-element branch from a81c906 to ad725e8 Compare August 5, 2026 11:04

@mrobinson mrobinson 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.

Looks good with some stylistic nits:

Comment thread html5ever/src/tree_builder/mod.rs Outdated
Comment thread html5ever/src/tree_builder/mod.rs
Co-authored-by: Martin Robinson <martin@abandonedwig.info>
Signed-off-by: Mykola Humanov <gnk667@proton.me>
@niklak
niklak force-pushed the refactor/tree-builder-insert-element branch from 13a5833 to 9958c09 Compare August 6, 2026 09:42
@github-actions github-actions Bot added the V-non-breaking A non-breaking change label Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

V-non-breaking A non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants