Skip to content
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

Node selection clone #769

Closed
wants to merge 6 commits into from
Closed

Node selection clone #769

wants to merge 6 commits into from

Conversation

nokome
Copy link
Contributor

@nokome nokome commented Sep 7, 2016

This method was not implemented and was causing an error in Stencila Document's integration of Substance. All other classes derived from Selection have this method (e.g. ContainerSelection, PropertySelection) so it appears to be an omission.

Sorry, was attempting to cherry pick a single commit for this PR but failed, so it includes commits also in #764.

Cheerio has a custom `type` attribute which it sets to `tag` for
most elements but to `script` for scripts. This fix provides for
consistent behavious with `BrowserDOMElement`. Note that in both
Chrome and Firefox `document.createElement('script').nodeType === window.Node.ELEMENT_NODE`
This message is sent by the `CollabServer`. This change simply removes
the distracting console warning every 30s. I'm not sure that this
is the best way to deal with this long term.
This method was not implemented and was causing an error in Stencila Document's integration of Substance.
All other classes derived from Selection have this method (e.g. ContainerSelection, PropertySelection) so it
appears to be an omission.
@nokome
Copy link
Contributor Author

nokome commented Sep 27, 2016

Closing this as have cherry picked this commit into #764

@nokome nokome closed this Sep 27, 2016
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.

None yet

1 participant