Closed nhemenway closed 6 years ago
Oh good catch. Looks like there are a couple of bugs in this case.
infer
won't properly get appliedhref
and src
but only applying the base to the href
attribute.PR with the fix coming shortly!
I'd love to get your eyes on PR #16
For context:
$
is an instance of a cheerio dom (basically jQuery on the server)preRender
runs directly before all the elements are converted to HTMLpostRender
runs directly after all the elements are converted to HTMLMakes sense. Thanks!
When attempting to use the base element along with an
img
, I'm getting the following error:I get this error whether or not my img src is relative or absolute.
Example: