diff --git a/lib/DOM/Element.php b/lib/DOM/Element.php index 4e3a0a0..160e551 100644 --- a/lib/DOM/Element.php +++ b/lib/DOM/Element.php @@ -323,7 +323,7 @@ class Element extends \DOMElement { # If the attribute is in some other namespace default: # The attribute’s serialized name is the attribute’s qualified name. - $name = $attr->name; + $name = $attr->nodeName; } $value = $this->escapeString($attr->value, true); diff --git a/lib/DOM/Text.php b/lib/DOM/Text.php index 761dc2f..5f29dd9 100644 --- a/lib/DOM/Text.php +++ b/lib/DOM/Text.php @@ -14,8 +14,10 @@ class Text extends \DOMText { # noframes, or plaintext element, or if the parent of current node is a noscript # element and scripting is enabled for the node, then append the value of # current node’s data IDL attribute literally. - // DEVIATION: No scripting. - + // DEVIATION: No scripting, so