{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/2582","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/2582/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/2582/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/2582/events","html_url":"https://github.com/vuejs/vue/issues/2582","id":144131199,"number":2582,"title":"Wrong (or maybe actually right) scope when `a` tag not closed","user":{"login":"simonmysun","id":3358854,"avatar_url":"https://avatars.githubusercontent.com/u/3358854?v=3","gravatar_id":"","url":"https://api.github.com/users/simonmysun","html_url":"https://github.com/simonmysun","followers_url":"https://api.github.com/users/simonmysun/followers","following_url":"https://api.github.com/users/simonmysun/following{/other_user}","gists_url":"https://api.github.com/users/simonmysun/gists{/gist_id}","starred_url":"https://api.github.com/users/simonmysun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonmysun/subscriptions","organizations_url":"https://api.github.com/users/simonmysun/orgs","repos_url":"https://api.github.com/users/simonmysun/repos","events_url":"https://api.github.com/users/simonmysun/events{/privacy}","received_events_url":"https://api.github.com/users/simonmysun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-29T01:52:47Z","updated_at":"2016-03-29T03:27:16Z","closed_at":"2016-03-29T03:27:16Z","body":"<!--\r\nThank you for contributing! Please carefully read the following before opening your issue.\r\n\r\nGot a question?\r\n===============\r\nThe issue list of this repo is **exclusively** for bug reports and feature requests. For simple questions, please use the following resources:\r\n\r\n- Read the docs: http://vuejs.org/guide/\r\n- Watch video tutorials: https://laracasts.com/series/learning-vue-step-by-step\r\n- Ask in the Gitter chat room: https://gitter.im/vuejs/vue\r\n- Ask on the forums: http://forum.vuejs.org/\r\n- Look for/ask questions on stack overflow: https://stackoverflow.com/questions/ask?tags=vue.js\r\n\r\nReporting a bug?\r\n================\r\n- Try to search for your issue, it may have already been answered or even fixed in the development branch.\r\n\r\n- Check if the issue is reproducible with the latest stable version of Vue. If you are using a pre-release, please indicate the specific version you are using.\r\n\r\n- It is **required** that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled \"need repro\" receives no further input from the issue author for more than 5 days, it will be closed.\r\n\r\n- It is recommended that you make a JSFiddle/JSBin/Codepen to demonstrate your issue. You could start with [this template](http://jsfiddle.net/5sH6A/) that already includes the latest version of Vue.\r\n\r\n- For bugs that involves build setups, you can create a reproduction repository with steps in the README.\r\n\r\n- If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it.\r\n\r\nHave a feature request?\r\n=======================\r\nRemove the template from below and provide thoughtful commentary *and code samples* on what this feature means for your product. What will it allow you to do that you can't do today? How will it make current work-arounds straightforward? What potential bugs and edge cases does it help to avoid? etc. Please keep it product-centric.\r\n-->\r\n\r\n<!-- BUG REPORT TEMPLATE -->\r\n### Vue.js version\r\n1.0.12(current version on jsfiddle.net)\r\n\r\n### Reproduction Link\r\n<!-- A minimal JSBin, JSFiddle, Codepen, or a GitHub reprository that can reproduce the bug. -->\r\nhttps://jsfiddle.net/simonmysun/n731tqw0/\r\n### Steps to reproduce\r\nJust run it. \r\n### What is Expected?\r\nThe `a` tag can be closed by browser then bind to vue model. \r\n### What is actually happening?\r\nWhen the `href` attribute of __second__ unclosed `a` tag is binded it trys to find the value in a wrong scope. What is interesting is that, if this `href` attribute is not binded, it's content can be successfully binded. \r\n\r\n`<a :herf=\"{{ branch.target }}\">` doesn't work either, of course. \r\n\r\nI know the code itself is totally inappropriate. I'm just curious about why Vue process them differently and trying to note whether the debug info is correct. "},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/202689103","html_url":"https://github.com/vuejs/vue/issues/2582#issuecomment-202689103","issue_url":"https://api.github.com/repos/vuejs/vue/issues/2582","id":202689103,"user":{"login":"yyx990803","id":499550,"avatar_url":"https://avatars.githubusercontent.com/u/499550?v=3","gravatar_id":"","url":"https://api.github.com/users/yyx990803","html_url":"https://github.com/yyx990803","followers_url":"https://api.github.com/users/yyx990803/followers","following_url":"https://api.github.com/users/yyx990803/following{/other_user}","gists_url":"https://api.github.com/users/yyx990803/gists{/gist_id}","starred_url":"https://api.github.com/users/yyx990803/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyx990803/subscriptions","organizations_url":"https://api.github.com/users/yyx990803/orgs","repos_url":"https://api.github.com/users/yyx990803/repos","events_url":"https://api.github.com/users/yyx990803/events{/privacy}","received_events_url":"https://api.github.com/users/yyx990803/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T03:27:16Z","updated_at":"2016-03-29T03:27:16Z","body":"This has nothing to do with Vue. The markup\r\n\r\n``` html\r\n<div>\r\n  <a>\r\n  <a>\r\n</div>\r\n```\r\n\r\nWhen parsed by the browser, becomes\r\n\r\n``` html\r\n<div>\r\n  <a>\r\n  </a><a>\r\n  </a></div><a>\r\n</a>\r\n```\r\n\r\nIf you write incorrect HTML... Vue can't produce correct results."}}