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

Question about ?= syntax #650

Closed
jmatsushita opened this issue Jul 21, 2014 · 4 comments
Closed

Question about ?= syntax #650

jmatsushita opened this issue Jul 21, 2014 · 4 comments
Labels

Comments

@jmatsushita
Copy link

@jmatsushita jmatsushita commented Jul 21, 2014

Hi there,

In the core-header-panel component, the following syntax is used:

<div id="mainContainer" flex?="{{mode !== 'cover'}}" on-scroll="{{scroll}}">
<content id="mainContent" select="*"></content>
</div>

Is the ?= part of the web component standard or is it polymer specific?

Cheers,

Jun

@addyosmani
Copy link
Member

@addyosmani addyosmani commented Jul 21, 2014

flex?= is Polymer specific to the best of my knowledge. See https://github.com/Polymer/TemplateBinding/blob/master/tests/tests.js#L928 for our unit tests around the feature.

@jmatsushita
Copy link
Author

@jmatsushita jmatsushita commented Jul 21, 2014

Thanks! Hopefully it won't be too much of an obstacle to convince html parser authors (@kangax) to allow for it.

@ebidel
Copy link
Contributor

@ebidel ebidel commented Jul 21, 2014

Docs are here:
http://www.polymer-project.org/docs/polymer/binding-types.html#conditional-attributes

On Mon, Jul 21, 2014 at 1:59 AM, Jun Matsushita notifications@github.com
wrote:

Thanks! Hopefully it won't be too much of an obstacle to convince html
parser
https://github.com/kangax/html-minifier/blob/gh-pages/src/htmlparser.js
authors (@kangax https://github.com/kangax) to allow for it.


Reply to this email directly or view it on GitHub
#650 (comment).

@ebidel ebidel added the invalid label Jul 30, 2014
@ebidel
Copy link
Contributor

@ebidel ebidel commented Jul 30, 2014

Closing as this is not a bug.

@ebidel ebidel closed this Jul 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.