We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DOMElement::setAttributeNS() seems to remove used namespace definitions if the attribute name equals the namespace prefix.
DOMElement::setAttributeNS()
$document = new DOMDocument(); $document->appendChild($document->createElement('foo')); $document->documentElement->setAttributeNS('urn:bar', 'bar:bar', '42'); $document->documentElement->setAttributeNS('urn:bar', 'bar:foobar', '42'); $document->documentElement->removeAttributeNS('urn:bar', 'bar'); echo $document->saveXML();
Additoinally using the XML namespaces URI seems no to remove namespace definitions
$document = new DOMDocument(); $document->appendChild($document->createElement('foo')); $document->documentElement->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:bar', 'urn:example'); $document->documentElement->removeAttributeNS('http://www.w3.org/2000/xmlns/', 'bar'); echo $document->saveXML();
FluentDOM should contain tests and implement a workround.
The text was updated successfully, but these errors were encountered:
Implement #80: remove namespace attributes
67b3494
Implement: make FluentDOM\DOM\Xpath::quote() a static function
ThomasWeinert
No branches or pull requests
DOMElement::setAttributeNS()
seems to remove used namespace definitions if the attribute name equals the namespace prefix.Additoinally using the XML namespaces URI seems no to remove namespace definitions
FluentDOM should contain tests and implement a workround.
The text was updated successfully, but these errors were encountered: