Skip to content

Some non-breaking changes (preparation for Shadow DOM support) - #2459

Merged
spocke merged 4 commits into
tinymce:masterfrom
nazar-pc:shadow-dom-support
Jan 26, 2016
Merged

spocke merged 4 commits into
tinymce:masterfrom
nazar-pc:shadow-dom-support

Conversation

@nazar-pc

@nazar-pc nazar-pc commented Nov 8, 2015

Copy link
Copy Markdown
Contributor

Some changes that break nothing and can be easily accepted, while help maturing Shadow DOM support in future (first 3 commits from #561).
Detailed description to suggested changed:

  • Allow appending/prepending elements not only to regular elements (element.nodeType == 1), but also to Shadow Root (element.host is present and element.host.nodeType == 1)
  • expect event.path to be present and picking first element from there instead of blindly picking event.target always; this helps with correct events targeting when target element is within Shadow Tree
  • Modal block selection normalized like in other placed, also helps to find proper element when using Shadow DOM (previously it didn't really matter, because everything was withing main DOM Tree, but since it doesn't break anything, I think it can be accepted)

@nazar-pc

Copy link
Copy Markdown
Contributor Author

Moved to EventUtils.js as suggested.
What do you think now? I can squash commits if necessary.

@nazar-pc

Copy link
Copy Markdown
Contributor Author

What stops this from being merged?

spocke added a commit that referenced this pull request Jan 26, 2016
Some non-breaking changes (preparation for Shadow DOM support)
@spocke
spocke merged commit 1e68b85 into tinymce:master Jan 26, 2016
@spocke

spocke commented Jan 26, 2016

Copy link
Copy Markdown
Member

Merged this since it shouldn't break things. Thanks for this patch sorry about the slow progress on this.

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