Get validation errors for specific blocks, not only for block names.
Get validation errors for specific blocks, not only for block names.

module.blocksWithErrors stores errors by block name.
In the block edit() method,
it needs to find if it has the specific errors.
So find if the errors exist in the content
by searching it for the node_name,
and the attributes and properties.
@todo: account for other errors,
like enqueued scripts.

ampproject/amp-toolbox-php,ampproject/amp-toolbox-php