This repository was archived by the owner on Oct 2, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 23622362 // `element` but such that `element`'s own children are not replaced
23632363 var translation = element . ownerDocument . createElement ( 'template' ) ;
23642364 translation . innerHTML = value ;
2365+ // polyfill html5 template element for Firefox OS 1.1 (added by Firetext)
2366+ if ( ! ( 'content' in translation ) ) {
2367+ translation . content = element . ownerDocument . createDocumentFragment ( ) ;
2368+ var childElement ;
2369+ while ( ( childElement = translation . childNodes [ 0 ] ) ) {
2370+ translation . removeChild ( childElement ) ;
2371+ translation . content . appendChild ( childElement ) ;
2372+ }
2373+ }
23652374 // overlay the node with the DocumentFragment
23662375 overlayElement ( element , translation . content ) ;
23672376 }
You can’t perform that action at this time.
0 commit comments