/[suikacvs]/markup/hlink/implementation/hlink-xbl.xml
Suika

Diff of /markup/hlink/implementation/hlink-xbl.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by w, Sun Jul 6 23:39:47 2003 UTC revision 1.2 by w, Sun Jul 6 23:40:18 2003 UTC
# Line 36  Line 36 
36            var elementNS = e.getAttribute ('namespace');            var elementNS = e.getAttribute ('namespace');
37            var elementType = e.getAttribute ('element');            var elementType = e.getAttribute ('element');
38            var linkAttr = [];            var linkAttr = [];
39            var linkAttrList = new Array ('locator', 'effect', 'actuate', 'mediaType');            var linkAttrList = new Array ('locator', 'effect', 'actuate', 'mediaType', 'replacement');
40            for (var k = 0; k < linkAttrList.length; k++) {            for (var k = 0; k < linkAttrList.length; k++) {
41              linkAttr[linkAttrList[k]] = [];              linkAttr[linkAttrList[k]] = [];
42              linkAttr[linkAttrList[k]].value = e.getAttribute (linkAttrList[k]);              linkAttr[linkAttrList[k]].value = e.getAttribute (linkAttrList[k]);
# Line 73  Line 73 
73                      //linkElements[i].removeChild (linkElements[i].firstChild);                      //linkElements[i].removeChild (linkElements[i].firstChild);
74                    }                    }
75                    linkElements[i].appendChild(oEl);                    linkElements[i].appendChild(oEl);
76                    } else if (myLinkAttr.effect == 'replace' && myLinkAttr.replacement
77                           && myLinkAttr.actuate == 'onRequest') {
78                      var aEl = linkElements[i].ownerDocument.createElementNS (XHTML1NS, 'a');
79                      linkElements[i].setAttributeNS (tempNS, 'HLinkStatus', elFlag+1);
80                      aEl.setAttributeNS (tempNS, 'HLinkStatus', 100);
81                      aEl.setAttribute ('href', myLinkAttr.locator);
82                      if (myLinkAttr.mediaType)
83                        aEl.setAttribute ('type', myLinkAttr.mediaType);
84                      aEl.setAttribute ('target', myLinkAttr.replacement);
85                      while (linkElements[i].childNodes.length) {
86                        aEl.appendChild (linkElements[i].firstChild);
87                      }
88                      linkElements[i].appendChild(aEl);
89                  } else {                  } else {
90                    linkElements[i].setAttributeNS (tempNS, 'HLinkStatus', elFlag+1);                    linkElements[i].setAttributeNS (tempNS, 'HLinkStatus', elFlag+1);
91                    linkElements[i].setAttributeNS (XLinkNS, 'type', 'simple');                    linkElements[i].setAttributeNS (XLinkNS, 'type', 'simple');
# Line 185  Line 198 
198     - for the specific language governing rights and limitations under the     - for the specific language governing rights and limitations under the
199     - License.     - License.
200     -     -
201     - The Original Code is SuikaWiki code.     - The Original Code is "HLink Memo" code.
202     -     -
203     - The Initial Developer of the Original Code is Wakaba.     - The Initial Developer of the Original Code is Wakaba.
204     - Portions created by the Initial Developer are Copyright (C) 2003     - Portions created by the Initial Developer are Copyright (C) 2003

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24