Skip to content

[0.9] hidden$="{{isHidden}}" vs hidden=$"{{isHidden}}" #1548

Description

@gertcuykens

The second one is much more easier and faster to read for humans, is it technically possible or are we talking html violation here?

hidden$="{{isHidden}}"
hidden=$"{{isHidden}}"

Activity

  1. gertcuykens commented on May 16, 2015

    @gertcuykens
    Author

    I can also live with this
    hidden="${{isHidden}}"

  2. gertcuykens commented on May 16, 2015

    @gertcuykens
    Author

    hidden=${{isHidden}}

  3. kevinpschaaf commented on May 21, 2015

    @kevinpschaaf
    Member

    The only reason we use this syntax is because IE validates and will excise any invalid attribute content (like {{) for certain attributes like href and style before Polymer ever gets to see it. Using $="..." is a workaround, since the attribute name becomes href$ and is thus not validated. It is an ergonomic compromise for cross-platform capability.

  4. gertcuykens commented on May 22, 2015

    @gertcuykens
    Author

    Ok thanks for answering

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions