Skip to content

Add test for link without target or rel attributes#88

Open
ioson wants to merge 1 commit intoueberdosis:mainfrom
ioson:test-link-without-target-rel
Open

Add test for link without target or rel attributes#88
ioson wants to merge 1 commit intoueberdosis:mainfrom
ioson:test-link-without-target-rel

Conversation

@ioson
Copy link

@ioson ioson commented Jan 19, 2026

as requested in: #73

Description

Adds a test to ensure that HTML links without target or rel attributes don't have these attributes automatically added when parsing and serializing HTML.

What this test covers

When a link is parsed from HTML that doesn't include target or rel attributes, those attributes should not be added to the serialized output. This preserves the original HTML structure and ensures links without these attributes remain unchanged.

Test Details

The test parses HTML containing a link without target or rel, serializes it back to HTML, and verifies that target="_blank" and rel= are not present in the output.

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.

1 participant