The context is the same as FilterCaption: we're working with an DOM node, not a Drupal node. The node represents the embedded entity HTML.