Question about ?= syntax #650

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

Projects

None yet

3 participants

@jmatsushita

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

@jmatsushita

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

@ebidel
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
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