Skip to content
Snippets Groups Projects
Commit 10d618a8 authored by Olav Morken's avatar Olav Morken
Browse files

Utilities::getDOMChildren: Ignore comment elements.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@333 44740490-163a-0410-bde0-09ae8108e29a
parent f99a1677
No related branches found
No related tags found
No related merge requests found
......@@ -582,8 +582,8 @@ class SimpleSAML_Utilities {
for($i = 0; $i < $element->childNodes->length; $i++) {
$child = $element->childNodes->item($i);
/* Skip text nodes. */
if($child instanceof DOMText) {
/* Skip text nodes and comment elements. */
if($child instanceof DOMText || $child instanceof DOMComment) {
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment