b-fuze / deno-dom

Browser DOM & HTML parser in Deno
https://jsr.io/@b-fuze/deno-dom
MIT License
423 stars 47 forks source link

Implement normalize function #166

Open esmith164 opened 5 months ago

esmith164 commented 5 months ago

Functionality Added: Implemented the normalize function within the Node class. Purpose: Merges adjacent text nodes and removes empty text nodes to clean up the DOM structure. Methodology:

TypeScript Compliance: Ensured type safety by handling potential null values in nodeValue.

b-fuze commented 4 months ago

Hey Ethan, please add tests and run deno fmt