Working <tr> directive replacements, refs #1459.