-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add support for Shadow DOM (ShadowRoot) #101
Add support for Shadow DOM (ShadowRoot) #101
Conversation
Possible test case we can comandeer:
|
addf823
to
bb82420
Compare
Hate to do this to you, but probably will land this after the #106... do you have a test we can put in the suite? |
Added tests, greatly simplified that snippet first too :) |
- Remove extraneous logic to handle ShadowRoot - Abstract `cloneChildren` ternaries awayy
These tags are (mis?)used without scoping in shadow DOM Remove them to prevent the cloned shadow DOM breaking Also STYLE tags can contribute media queries that damage output integrity
This is looking REALLY good, thanks for all your hard work :) |
Yup must be that margin on |
The whole cloned node section is blank.... creating a fiddle |
This is the emitted IFRAME from the fiddle |
I think there must have been a race condition where the Maybe it works if the <script> tag is inside the element |
I moved the script up to above the content and now we get a warning when running it... but the cloning works. SO WRONG |
Got it ... the element in the testcase is technically dependent on |
... going to have to think through how to delay long enough to make the tests pass... maybe a simple await somewhere. |
Resolves #86.