<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/vuejs/vue/blob/7a8de91cd78f523fabe8452652513250871a01c6/src/compiler/codeframe.js#L16">vue/src/compiler/codeframe.js</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 16
      in
      <a data-pjax="true" class="commit-tease-sha" href="/vuejs/vue/commit/7a8de91cd78f523fabe8452652513250871a01c6">7a8de91</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L16" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="16"></td>
          <td id="LC16" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">j</span> <span class="pl-c1">=</span> <span class="pl-s1">i</span> <span class="pl-c1">-</span> <span class="pl-s1">range</span><span class="pl-kos">;</span> <span class="pl-s1">j</span> <span class="pl-c1">&lt;=</span> <span class="pl-s1">i</span> <span class="pl-c1">+</span> <span class="pl-s1">range</span> <span class="pl-c1">||</span> <span class="pl-s1">end</span> <span class="pl-c1">&gt;</span> <span class="pl-s1">count</span><span class="pl-kos">;</span> <span class="pl-s1">j</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">当<code class="notranslate">count &lt; end</code>时，此for循环无法停止。</p>
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.10</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/qagby1e4/" rel="nofollow">https://jsfiddle.net/qagby1e4/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Somehow if I use the attribute "open" on a html tag, vue fills the attribute with the value "open". See the attached jfiddle, and inspect the span containing the attribute. If I put the tag outside the vue app, everything is fine. Also, it doesn't matter what the content of the attribute is.</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">Vue doesn't mutate the attribute "open" on html tags inside the vue app.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">Vue mutates the "open" attribute with the value "open".</p>
<hr>
<p dir="auto">It doesn't seem to be a reserved keyword, although this file <a href="https://github.com/vuejs/vue/blob/dev/src/platforms/web/util/attrs.js">https://github.com/vuejs/vue/blob/dev/src/platforms/web/util/attrs.js</a> does specify it as a boolean attribute. In our case, a mathjax html structure, the open attribute can contain string values.</p>