Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

platform.js Shadow DOM shim should work with attribute selectors #1189

Open
jbdeboer opened this issue Jun 28, 2014 · 10 comments
Open

platform.js Shadow DOM shim should work with attribute selectors #1189

jbdeboer opened this issue Jun 28, 2014 · 10 comments

Comments

@jbdeboer
Copy link
Contributor

e.g. a Component with the selector 'foo[bar]' will cause the Shadow DOM shim to fail.

This only effects browsers that need the shim.

dsalsbury pushed a commit to dsalsbury/angular.dart that referenced this issue Jul 16, 2014
dsalsbury pushed a commit to dsalsbury/angular.dart that referenced this issue Jul 16, 2014
@vsavkin
Copy link
Contributor

vsavkin commented Sep 1, 2014

It can be fixed only after https://github.com/Polymer/platform-dev/issues/44.

@vicb
Copy link
Contributor

vicb commented Sep 2, 2014

@vsavkin haven't you tried to fix the js and submit a PR ? What was the outcome ?
I don't think the linked issue is clear enough. It should also state what we need. I don't think we need any selector as we could easily add a class or an attribute. I thought that the only problem was that the selector is set to the tag name which is not unique to a (angular) component ?

@vsavkin
Copy link
Contributor

vsavkin commented Sep 2, 2014

@vicb I was going to, but it turned out to be a low-priority issue. So I did not do any work on it. I've updated the issue. Please check if it is clear now.

@vicb
Copy link
Contributor

vicb commented Sep 4, 2014

@vsavkin If think the description is much better now - especially the second part which propose a solution. What about going even further and propose an API. Then we are sure that what gets implemented fit our needs.

@vsavkin
Copy link
Contributor

vsavkin commented Sep 4, 2014

@vicb I've added an API proposal.

@vicb
Copy link
Contributor

vicb commented Sep 4, 2014

@vsavkin 👍 Have you tried to contact the polymer team about that ? It would great to get their opinion about this and an ETA if they agree

@vsavkin
Copy link
Contributor

vsavkin commented Sep 4, 2014

@vicb I haven't, but it is a good idea. I'll shoot them an email today.

@akserg
Copy link

akserg commented Jan 6, 2015

Hi,

Any progress on that issue.

The monkeysecurity raised an issue on Angular Dart UI:

WARNING: 2015-01-02 18:11:00.002: WARNING: Failed to set up Shadow DOM shim for pagination[page][total-items].
InvalidCharacterError: The string contains invalid characters. 'pagination[page][total-items]' is not a valid attribute name.

It would be nice to have any feedback from you.

@vsavkin
Copy link
Contributor

vsavkin commented Jan 6, 2015

@akserg It looks like the issue has not been fixed in Platform.js. So it is not fixed in AngularDadrt either (cause we are emulating their approach). You can, however, define your own shim (as shown here https://github.com/angular/angular.dart/wiki/CSS-Shim), where you can, for instance, take the element part of the selector and use it for shimming.

@vicb
Copy link
Contributor

vicb commented Jan 23, 2015

https://github.com/Polymer/platform-dev/issues/44 has been moved to webcomponents/webcomponentsjs#28 (former repo is deprecated)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants