8000 Nest the wrapper in the body instead of around it by rcpeters · Pull Request #69 · recogito/recogito-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Nest the wrapper in the body instead of around it #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2022

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0