Skip to content

Commit ff4a1c5

Browse files
committed
added id for variablelist
1 parent ba78137 commit ff4a1c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

phpdotnet/phd/Package/Generic/XHTML.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,12 @@ public function format_step($open, $name, $attrs) {
12481248
}
12491249
public function format_variablelist($open, $name, $attrs) {
12501250
if ($open) {
1251-
return "<dl>\n";
1251+
if (isset($attrs[Reader::XMLNS_XML]["id"])) {
1252+
$id = $attrs[Reader::XMLNS_XML]["id"];
1253+
return '<dl id="'.$id.'">';
1254+
} else {
1255+
return '<dl>';
1256+
}
12521257
}
12531258
return "</dl>\n";
12541259
}

0 commit comments

Comments
 (0)