Added a dom api attribute data-rule to replace data-expected