gleanerio / gleaner

Gleaner: JSON-LD and structured data on the web harvesting
https://gleaner.io
Apache License 2.0
17 stars 10 forks source link

Headless missing render #152

Closed valentinedwv closed 1 year ago

valentinedwv commented 1 year ago

started a branch to help test page rendering. dv_headlessTesting

r2r has two jsonlds, but the second one it not getting captured.

application javascript says it should be in the head

 h.type = "application/ld+json",
        g = f.trustAsHtml(e("json")(g)),
        h.text = g,
        document.querySelector("head").appendChild(h)

in chrome, the jsonld is rendered in the head

In schema validator, it is rendered outside (is it late?) https://validator.schema.org/#url=https%3A%2F%2Fdev.rvdata.us%2Fsearch%2Ffileset%2F100135

In the headless testing, only find one.

Some discussion here:

valentinedwv commented 1 year ago

Look at: https://github.com/mafredri/cdp/issues/99 and https://github.com/mafredri/cdp/issues/116

valentinedwv commented 1 year ago

127 is resolved by this