/[suikacvs]/webroot/www/style/html/xhtml2-translate.xbl
Suika

Contents of /webroot/www/style/html/xhtml2-translate.xbl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Oct 25 00:06:22 2004 UTC (21 years, 4 months ago) by wakaba
Branch: MAIN
Imported

1 wakaba 1.1 <?xml version="1.0"?>
2     <bindings xmlns="http://www.mozilla.org/xbl">
3     <binding id="copy-as-child">
4     <implementation>
5     <constructor type="application/x-javascript" xml:space="preserve">
6     <![CDATA[
7     var clone = document.createElementNS
8     ('http://www.w3.org/1999/xhtml',
9     this.localName);
10     for (var i = 0; i < this.attributes.length; i++) {
11     var attr = this.attributes[i];
12     clone.setAttributeNS (attr.namespaceURI, attr.localName,
13     attr.nodeValue);
14     }
15     for (i = 0; i < this.childNodes.length; i++) {
16     clone.appendChild (this.childNodes[i]);
17     }
18     this.appendChild (clone);
19     ]]>
20     </constructor>
21     </implementation>
22     </binding>
23     <binding id="meta">
24     <implementation>
25     <constructor type="application/x-javascript" xml:space="preserve">
26     <![CDATA[
27     /*
28     var clone = document.createElementNS
29     ('http://www.w3.org/1999/xhtml', 'meta');
30     for (var i = 0; i < this.attributes.length; i++) {
31     var attr = this.attributes[i];
32     clone.setAttributeNS (attr.namespaceURI, attr.localName,
33     attr.nodeValue);
34     }
35     if (!clone.hasAttribute ('content'))
36     clone.setAttribute ('content', this.textContent);
37     this.appendChild (clone);
38     */
39     this.name = this.getAttribute ('name');
40     if (this.hasAttribute ('content'))
41     this.content = this.getAttribute ('content')
42     else
43     this.content = this.textContent;
44     ]]>
45     </constructor>
46     </implementation>
47     </binding>
48     </bindings>
49     <!-- ***** BEGIN LICENSE BLOCK *****
50     - Version: MPL 1.1/GPL 2.0/LGPL 2.1
51     -
52     - The contents of this file are subject to the Mozilla Public License Version
53     - 1.1 (the "License"); you may not use this file except in compliance with
54     - the License. You may obtain a copy of the License at
55     - <http://www.mozilla.org/MPL/>
56     -
57     - Software distributed under the License is distributed on an "AS IS" basis,
58     - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
59     - for the specific language governing rights and limitations under the
60     - License.
61     -
62     - The Original Code is SuikaWiki code.
63     -
64     - The Initial Developer of the Original Code is Wakaba.
65     - Portions created by the Initial Developer are Copyright (C) 2003
66     - the Initial Developer. All Rights Reserved.
67     -
68     - Contributor(s):
69     - Wakaba <w@suika.fam.cx>
70     -
71     - Alternatively, the contents of this file may be used under the terms of
72     - either the GNU General Public License Version 2 or later (the "GPL"), or
73     - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
74     - in which case the provisions of the GPL or the LGPL are applicable instead
75     - of those above. If you wish to allow use of your version of this file only
76     - under the terms of either the GPL or the LGPL, and not to allow others to
77     - use your version of this file under the terms of the MPL, indicate your
78     - decision by deleting the provisions above and replace them with the notice
79     - and other provisions required by the LGPL or the GPL. If you do not delete
80     - the provisions above, a recipient may use your version of this file under
81     - the terms of any one of the MPL, the GPL or the LGPL.
82     -
83     - ***** END LICENSE BLOCK ***** -->

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24