Skip to content

Conversation

sowiso
Copy link

@sowiso sowiso commented Oct 28, 2020

We needed to change tag names during dom manipulations, so we added the setName function for this.

@baghbanM
Copy link

undefined method PHPHtmlParser\Dom\HtmlNode::setName()

mr-chetan added a commit to devanoxltd/php-html-parser that referenced this pull request Aug 24, 2025
Introduces a setName method to the Tag class for setting the tag name and returning a cloned instance. Also adds a return type to the offsetGet method in Collection for improved type safety.

paquettg#250
mr-chetan added a commit to devanoxltd/php-html-parser that referenced this pull request Aug 24, 2025
Introduces a setName method to the Tag class for setting the tag name and returning a cloned instance. Also adds a return type to the offsetGet method in Collection for improved type safety.

https: //github.com/paquettg/pull/250
Co-Authored-By: max cohen <[email protected]>
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.

3 participants