简体   繁体   English

在Polymer 1.0中,为什么使用webcomponents-lite.js时我的硫化页面无法在IE中显示

[英]In Polymer 1.0 why does my vulcanized page not show in IE when using webcomponents-lite.js

I am trying to move to use webcomponents-lite.js, but have problems when vulcanizing it. 我正在尝试使用webcomponents-lite.js,但在硫化时遇到问题。 I have boiled it down to the following: 我将其归结为以下内容:

<!doctype html>
<html>
<head>
    <script src='bower_components/webcomponentsjs/webcomponents-lite.js'></script>
    <link rel='import' href='bower_components/paper-input/paper-input.html'>
</head>
<body>
    <paper-input></paper-input>
</body>

Which does not work in IE after being vulcanized 硫化后在IE中不起作用

If I switch to 如果我切换到

<script src='bower_components/webcomponentsjs/webcomponents.js'></script>

it works 有用

I am doing --inline-scripts --inline-css with version 1.14.0 我正在使用版本1.14.0进行--inline-scripts --inline-css

It fails in the polymer part (I think) in a function 它在功能的聚合物部分(我认为)中失败了

removeAttribute: function (name) {
    this.node.removeAttribute(name);
    this._distributeParent();
},

with: Object doesn't support property or method 'removeAttribute' 使用:对象不支持属性或方法'removeAttribute'

I must be doing something wrong in this somewhat simple example, but what is it? 在这个稍微简单的示例中,我一定做错了什么,但这是什么?

Is there something that lite does not polyfill? lite是否没有填充某些东西?

Thanks a lot 非常感谢

Cheers 干杯

最新版本的webcomponents已修复此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM