/** * If the owner document is a FluentDOM\Document register the namespace on the * document object, too. * * @param string $prefix * @param string $namespace * @return bool */ public function registerNamespace($prefix, $namespace) { if ($this->_documentReference instanceof Document && $this->_documentReference->getNamespace($prefix) !== $namespace) { $this->_documentReference->registerNameSpace($prefix, $namespace); } return parent::registerNamespace($prefix, $namespace); }