Reading a page: one posting in both JSON-LD and microdata is offered as a two-item results list #26
Labels
No labels
bug
documentation
enhancement
performance
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo-chromium#26
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found on 2026-09-29 in a read-only review of postulo-chromium at
7998de372, readingreadPostingsinsrc/lib/parse.jsand running it under jsdom.readPostingspromises that "the same posting written twice, in the script and in the markup, is listed once", but it keys each posting on its own address, falling back to the tab's address. When only one of the two spellings states aurl, and the tab's address differs from it (a tracking query, a slug), the two keys differ. The same posting is listed twice, neither copy ishere, and the popup shows the tick list for a results page instead of the correction form.src/lib/parse.js:808-809,readPostings()(const own = ownUrl(posting) || url;and the key built fromsameUrl(own));src/lib/parse.js:542-549,sameUrl(), which keeps the query;src/lib/parse.js:556-570,matchesUrl();src/popup.js:92, which shows the pick list when more than one posting is listed and none ishere.url: "https://jobs.example/j/42"and whose microdata spells the same posting without aurl, read athttps://jobs.example/j/42?utm_source=newsletter, gives two entries, with urlshttps://jobs.example/j/42andhttps://jobs.example/j/42?utm_source=newsletter, bothhere: false(checked under jsdom against the snapshot). Read at the bare address, the same page gives one entry,here: true. The existing test (test/parse.test.mjs:32-42) covers only the case where both spellings state the sameurl.utm_*and similar tracking parameters, when decidinghere, so the canonical copy matches the tab it is shown in.Related to postulo/postulo-chromium#5, which notes that
sameUrldiffers from the core's address key in other ways, but not this one.Done when
test/parse.test.mjshas a case with a JSON-LD posting statingurland a microdata copy without one, read at the same address plus?utm_source=newsletter, asserting one entry andhere: true.