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

Ensure matching if - else attributes #168

Open
MeirionHughes opened this issue Mar 15, 2017 · 1 comment
Open

Ensure matching if - else attributes #168

MeirionHughes opened this issue Mar 15, 2017 · 1 comment
Assignees

Comments

@MeirionHughes
Copy link
Contributor

MeirionHughes commented Mar 15, 2017

<div if.bind="user.signedIn">
  Hello ${user.name}.
  <a>Logout</a>
</div>
<div else>
  Please log in.
</div>
  • for element with else attribute:
    • ensure immediate preceding sibling node (same parent), ignoring text-nodes, has an if.bind

example

<div>
  <div else>
    Please log in.
  </div>
</div>
  • issue: missing a matching if.bind in predecessor sibling

ref: https://github.com/jods4/if-else
cc: @jods4

@jods4
Copy link

jods4 commented Mar 15, 2017

predecessor-sibling

Should be not any predecessor, but the previous element.

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

No branches or pull requests

2 participants