This patch fixes an issue that happened when the assumption was
made that offsetType is in the opts sub-array but it's really not
part of it. It's directly in attributes, copied from envOptions,
which causes the offset type to always be byte.
Change-Id: I5d1a8a7cdfe13c22a2afa70128203050a4b5f98a
This renames TransformContext to HTMLTransformInput. It is becoming a
wrapper around the input HTML, with a bunch of optional context data
attached.
This introduces a factory method for HTMLTransformInput, so we can
extract knowledge about the structure of the $attribs array from
HTMLTransformInput.
This also allows us to inject Document objects and perhaps PageBundle
objects, instead of just arrays.
Change-Id: I66f9c5dbb50c6bf1f582adad7766422216482402