зеркало из https://github.com/mozilla/pjs.git
Test files for simple XLink. Not part of build.
This commit is contained in:
Родитель
9fb8a2863c
Коммит
3ab4622e1d
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="link.css" type="text/css"?>
|
||||
<root xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<p>Testing simple XLinks that must fire immediately on load.</p>
|
||||
<mylink xlink:type="simple" xlink:actuate="onLoad" xlink:show="new" xlink:href="resource:/res/samples/test0.html">
|
||||
Must not open automatically, illegal</mylink>
|
||||
<mylink xlink:type="simple" xlink:actuate="onLoad" xlink:show="new" xlink:href="http://www.mozilla.org">
|
||||
Must open automatically in new window (www.mozilla.org)</mylink>
|
||||
<mylink xlink:type="simple" xlink:actuate="onLoad" xlink:show="new" xlink:href="http://www.mozillazine.org">
|
||||
Must open automatically in new window (www.mozillazine.org)</mylink>
|
||||
<mylink xlink:type="simple" xlink:actuate="onLoad" xlink:show="replace" xlink:href="http://www.mozilla.org/mozorg.html">
|
||||
Must load automatically in same window - "Refresh" (At a glance)</mylink>
|
||||
<mylink xlink:type="simple" xlink:actuate="onLoad" xlink:show="replace" xlink:href="http://www.netscape.com">
|
||||
Must not load automatically, one refresh link fired already (www.netscape.com)</mylink>
|
||||
</root>
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
@namespace xlink url(http://www.w3.org/1999/xlink);
|
||||
|
||||
root {
|
||||
display: block;
|
||||
padding: +5px;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
}
|
||||
|
||||
mylink {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
color: blue;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче