OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --> | 9 --> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 <dom-module id="iron-a11y-announcer"> | 47 <dom-module id="iron-a11y-announcer"> |
48 <style> | 48 <style> |
49 :host { | 49 :host { |
50 display: inline-block; | 50 display: inline-block; |
51 position: fixed; | 51 position: fixed; |
52 clip: rect(0px,0px,0px,0px); | 52 clip: rect(0px,0px,0px,0px); |
53 } | 53 } |
54 </style> | 54 </style> |
55 | 55 |
56 <template> | 56 <template> |
57 <span aria-live$="[[mode]]">[[_text]]</span> | 57 <div aria-live$="[[mode]]">[[_text]]</div> |
58 </template> | 58 </template> |
59 | 59 |
60 <script> | 60 <script> |
61 | 61 |
62 (function() { | 62 (function() { |
63 'use strict'; | 63 'use strict'; |
64 | 64 |
65 Polymer.IronA11yAnnouncer = Polymer({ | 65 Polymer.IronA11yAnnouncer = Polymer({ |
66 is: 'iron-a11y-announcer', | 66 is: 'iron-a11y-announcer', |
67 | 67 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 if (!Polymer.IronA11yAnnouncer.instance) { | 116 if (!Polymer.IronA11yAnnouncer.instance) { |
117 Polymer.IronA11yAnnouncer.instance = document.createElement('iron-a11y
-announcer'); | 117 Polymer.IronA11yAnnouncer.instance = document.createElement('iron-a11y
-announcer'); |
118 } | 118 } |
119 | 119 |
120 document.body.appendChild(Polymer.IronA11yAnnouncer.instance); | 120 document.body.appendChild(Polymer.IronA11yAnnouncer.instance); |
121 }; | 121 }; |
122 })(); | 122 })(); |
123 | 123 |
124 </script> | 124 </script> |
125 </dom-module> | 125 </dom-module> |
OLD | NEW |