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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Show comment
Hide comment
@addyosmani

addyosmani Jul 21, 2014

Member

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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@jmatsushita

jmatsushita Jul 21, 2014

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

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

This comment has been minimized.

Show comment
Hide comment
@ebidel

ebidel Jul 21, 2014

Member

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).

Member

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

This comment has been minimized.

Show comment
Hide comment
@ebidel

ebidel Jul 30, 2014

Member

Closing as this is not a bug.

Member

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