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]); |
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'); |
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 |