-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #2077: workaround IE text node splitting issue that can make te…
…xt bindings fail.
- Loading branch information
Steven Orvell
committed
Jul 14, 2015
1 parent
c46ec11
commit 312d11f
Showing
5 changed files
with
117 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
|
||
<title>annotations</title> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script> | ||
<link rel="import" href="../../polymer.html"> | ||
|
||
</head> | ||
<body> | ||
|
||
<dom-module id="my-component"> | ||
<template> | ||
<p>©</p> | ||
<p>{{myText}}</p> | ||
</template> | ||
</dom-module> | ||
|
||
<script> | ||
HTMLImports.whenReady(function() { | ||
Polymer({ | ||
is: "my-component", | ||
properties: { | ||
myText: { | ||
type: String, | ||
value: 'Sample' | ||
} | ||
}, | ||
}); | ||
}); | ||
</script> | ||
|
||
<h1>Bind correctly?</h1> | ||
|
||
<my-component></my-component> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
|
||
<title>annotations</title> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script> | ||
<link rel="import" href="../../src/polymer-lib.html"> | ||
|
||
</head> | ||
<body> | ||
|
||
<p>©</p> | ||
<p id="binding">{{binding}}</p> | ||
<h4>textNodes above</h4> | ||
<script> | ||
var c$ = binding.childNodes; | ||
for (var i=0; i < c$.length; i++) { | ||
var d = document.createElement('div'); | ||
d.innerHTML = c$[i].textContent; | ||
document.body.appendChild(d); | ||
} | ||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters