Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No removeChild() function #57

Open
jdkolassa opened this issue Feb 28, 2018 · 4 comments
Open

No removeChild() function #57

jdkolassa opened this issue Feb 28, 2018 · 4 comments

Comments

@jdkolassa
Copy link

As far as I can determine, Simple HTML DOM does not have a way to actually remove DOM elements from a document. This can be troublesome, especially if you're using mpdf to make a PDF file and there's an <svg> tag in there; mpdf flips out whenever it sees one.

There may be a good reason removeChild() has not been implemented, but as a suggestion for a future update, could such a function be implemented?

@Hodel1
Copy link

Hodel1 commented Mar 12, 2018

I think sunra has only forked the source and added things like namespace, so you have to report this to their sourceforge page

@jdkolassa
Copy link
Author

Ah, good point.

@plonknimbuzz
Copy link

FYI only. i hope help you to have more alternative library to work.

sunra idle => paquettg idle => now

now i use the last library. but still monitor all those library, because maybe they have different good point

@Sarasranglt
Copy link

Here's how I solved it.

$childNode = $dom->find('Your Child Node');
$childNode->setAttribute('outertext','');

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

No branches or pull requests

4 participants