node.class becomes node.as