Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Conversation

@rcpeters
Copy link
Contributor

Check if passed in element is the body tag. Place the wrapper inside the body tag instead of around it.

@rsimon
Copy link
Member

rsimon commented Apr 13, 2022

Thanks - that's a really useful extension!

@rsimon rsimon merged commit 58f675b into recogito:main Apr 13, 2022
@rcpeters
Copy link
Contributor Author

Just had a thought this is going to break existing pre-annotations if generated with document.body before the change? Doesn't affect me, but wanted to bring up the possible issue.

@rsimon
Copy link
Member

rsimon commented Apr 15, 2022

That's true. However, RecogitoJS would have introduced a broken DOM structure (by wrapping the body) previously. So I think it's justifiable to introduce this as a (potentially) breaking change. I'll make a note in the next release notes, and will make it the 1.8 release (rather than 1.7.2).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants