Skip to content

Question about ?= syntax #650

Closed
Closed

Description

@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

Activity

  1. addyosmani commented on Jul 21, 2014

    @addyosmani
    Contributor

    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.

  2. jmatsushita commented on Jul 21, 2014

    @jmatsushita
    Author

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

  3. ebidel commented on Jul 21, 2014

    @ebidel
    Contributor

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

  4. ebidel commented on Jul 30, 2014

    @ebidel
    Contributor

    Closing as this is not a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions