parseTableCellElement function

TableCellElement parseTableCellElement(
  1. Element element,
  2. List<StyledElement> children
)

Implementation

TableCellElement parseTableCellElement(dom.Element element,
    List<StyledElement> children,) {
  final cell = TableCellElement(
    name: element.localName!,
    elementId: element.id,
    elementClasses: element.classes.toList(),
    children: children,
    node: element,
    style: CSS3(),
  );
  if (element.localName == "th") {
    cell.style = CSS3(
      fontWeight: FontWeight.bold,
    );
  }
  return cell;
}