Commit graph

2 commits

Author SHA1 Message Date
Derick Alangi
f331834754 Rest: offsetType is not in the options sub-array
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
2022-07-26 11:33:42 +01:00
daniel
6236b1f2f4 Move knowledge about the attribs array out of TransformContext
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
2022-07-22 12:12:55 +00:00