question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<template v-for... not working on IE 10 & 11 on 'table' tag. Woking on other browsers, including IE 9

See original GitHub issue

Vue.js version

1.0.24

Reproduction Link

JSFiddle

Steps to reproduce

Run JSFiddle using IE 10/11

What is Expected?

<template v-for= is working correctly for tables in IE 10/11

What is actually happening?

IE 10/11 is not rendering table correctly. Other browsers, including IE 9 works correctly. This bug is only reproducable for “table” tag rendering. When <template... is used on lists etc. it works correctly.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
Aymkdncommented, Jun 15, 2017

It took me a while to find the correct use of is. So I share it here:

<table>
  <tbody>
    <tr is="itemtpl" v-for="item in items" :item="item"></tr>
  </tbody>
</table>
[...]
<script type="text/x-template" id="itemtpl-template">
  <tr>
    <td>{{ item.id }}</td>
    <td>{{ item.name }}</td>
  </tr>
</script>
5reactions
KongenChencommented, Aug 30, 2017

If you just want to loop once, you can

<table>
    <thead>
        <tr>
            <th>header1</th>
            <th>header2</th>
        </tr>
    </thead>
    <tbody>
        <tr v-for="item in items">
            <td>{{item.real_name}}</td>
            <td>{{item.department_name}}</td>
        </tr>
    </tbody>
</table>

If you want to loop twice, I have a trick for that though it will produce many tbody elements. But it seems that it display correctly.

<table>
    <thead>
        <tr>
            <th>header1</th>
            <th>header2</th>
        </tr>
    </thead>
    <tbody v-for="item in items">
        <tr v-for="value in item">
            <td>{{value.value_name}}</td>
            <td>{{value.value_type}}</td>
        </tr>
    </tbody>
</table>
Read more comments on GitHub >

github_iconTop Results From Across the Web

vue frame in IE browser IE browser has bad drawing
1 Answer 1 · <template v-for... not working on IE 10 & 11 on 'table' tag. Woking on other browsers, including IE 9...
Read more >
<main> HTML5 Tag not working in Internet Explorer 9/10/11
I was working on an my old Weblog code to tweak some of the markup a couple of days ago and ran into...
Read more >
Internet Explorer uses wrong character set for an HTML page
Describes an issue where Internet Explorer may render an HTML page using ... correct charset is specified in the HTML page by using...
Read more >
unifi lan2 port - La Via Lattea Food
Without a router or L3 switch, you won't be able to route between VLANs or subnets and reach the Internet. UniFi Security Gateway....
Read more >
Fixing Google Chrome compatibility bugs in websites - FAQ
It's aimed at Web developers trying to fix compatibility issues with ... And IE9 is very similar to all other browsers, so the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found