# appropriate
foreach (array_keys($obj) as $key) {
# FIXME: we would want something like \Q and \E here...
- if (preg_match('/^' . $tag . '\.(.*)$/', $key, $matches) ||
- ($id != null && preg_match('/^#' . $id . '\.(.*)$/', $key, $matches))) {
+ if (preg_match('/^' . $tag . '\/(.*)$/', $key, $matches) ||
+ ($id != null && preg_match('/^#' . $id . '\/(.*)$/', $key, $matches))) {
$child->set_attribute($matches[1], $obj[$key]);
}