Comments (4)
Fixed by a88671e
from polymer.
The issue is still happening in shim ShadowDOM.
from polymer.
Steve made issues/pending/shimShadowComponentEvents test case.
from polymer.
The problem arises because we are trying to walk into the shadow DOM from composed DOM.
Natively, a node exists only in one local DOM and the composed DOM is virtual (and can be ignored). Shim requires that a node exists only in composed DOM, so placeholders are used for other trees (Changelings).
Naively, node.changeling is used to locate the shadow DOM subtree where node is intended to exist. Unfortunately, multiple placeholders are used to implement projections and compositions, so node.changeling often refers to the wrong subtree.
I've attempted to solve this problem by:
(1) making sure that node.changeling is only set once (i.e. cache the initial position only)
(2) setting lightDOM.host
(3) coding the controller tree climber to use lightDOM.host as if it were parentNode
I may have missed a wrinkle, or there could be negative side-effects, which is why I wanted to document it here.
from polymer.
Related Issues (20)
- Polymer Gestures SyntaxError: The string did not match the expected pattern. HOT 2
- Polymer cannot be used with Skypack HOT 2
- Pm2 error HOT 1
- Uncaught TypeError: Error resolving module specifier “@polymer/polymer/lib/legacy/polymer-fn.js”. Relative module specifiers must start with “./”, “../” or “/”. HOT 1
- Safari dom-if slot bug "A problem repeatedly occurred" HOT 1
- Single quotes and double quotes are removed from CSS url parameter breaking some data:image/... definitions HOT 2
- observers do not work with es2022 class properties
- Mobile clicks cancelled with VoiceOver or Talkback
- Stamp a new release of Polymer + elements with improved trusted type support HOT 4
- Missing Patents file
- readme: wrong path to webcomponents-loader.js HOT 1
- readme: new url to polymer-modulizer
- Sudden malfunction ouf our webpages : polymer 1.7.0.2 partially moved ? HOT 1
- Cant override paper elements CSS
- margin and padding not defined HOT 1
- Create a Security Policy
- Is there any other way to add unit test for Polymer 1.x component apart from Web component tester?
- Polymer-template
- Getting Windows undefined with using Angular11 server side rendering
- Cannot read property 'polyfillWrapFlushCallback' of undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polymer.