Skip to content

Fixed bugs in embed and remote frame context handling. - #31

Closed
RDProjekt wants to merge 2 commits into
digitalbazaar:masterfrom
RDProjekt:master
Closed

Fixed bugs in embed and remote frame context handling.#31
RDProjekt wants to merge 2 commits into
digitalbazaar:masterfrom
RDProjekt:master

Conversation

@RDProjekt

Copy link
Copy Markdown

Hi!

We noticed two bugs in your code. One is in the framing algorithm when the remote frame contains a context url (the "if" was never True and if/else branches were reversed), and the other is in the _remove_embed function (lack of "enumerate" while iterating embed['parent']).

Here's a pull request with patches. We also added some unit-tests for the first bug. Because json-ld-org tests don't cover it, we had to come up with our own.

Best regards,
RD Projekt

Łukasz Jancewicz added 2 commits July 24, 2014 16:11
@dlongley

Copy link
Copy Markdown
Member

Thanks @RDProjekt! We need to take a closer look at this when we can, but it does look like we want to pull it in. We do need to get generic unit tests (that aren't just the official JSON-LD test suite) working and running in travis so we can throw more in there as needed and this could be a good start for that. We'd like, at least eventually, all of the tests (official JSON-LD test suite and our own custom ones) to run at the same time.

@davidlehn

Copy link
Copy Markdown
Member

It would be good to try and get these tests into the main test suite. We want to be able test all implementations for these issues.

@mielvds mielvds added this to the v2.0.5 milestone Nov 6, 2025
@mielvds mielvds mentioned this pull request Dec 23, 2025
12 tasks
@mielvds

mielvds commented Jan 5, 2026

Copy link
Copy Markdown
Collaborator

This fix and tests are now included in #228

@mielvds mielvds closed this Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants