979 |
|
|
980 |
IF: |
IF: |
981 |
@Name: |
@Name: |
982 |
|
@@@: HTMLDOMImplementation |
983 |
|
@@ForCheck: |
984 |
|
ManakaiDOM:ForIF |
985 |
|
@ISA: |
986 |
|
@@@: |
987 |
|
DOMCore:DOMImplementation |
988 |
|
@@ForCheck: |
989 |
|
ManakaiDOM:ForIF |
990 |
|
|
991 |
|
@Name: |
992 |
|
@@@: ManakaiDOMHTMLDOMImplementation |
993 |
|
@@ForCheck: |
994 |
|
ManakaiDOM:ForClass |
995 |
|
@ISA: |
996 |
|
@@@: |
997 |
|
DOMCore:ManakaiDOMImplementation |
998 |
|
@@ForCheck: |
999 |
|
ManakaiDOM:ForClass |
1000 |
|
|
1001 |
|
@For: |
1002 |
|
ManakaiDOM:ManakaiDOMLatest |
1003 |
|
@For: |
1004 |
|
=ManakaiDOM:ManakaiDOM |
1005 |
|
@DOMMain:implementFeature: HTMLFeature20 |
1006 |
|
|
1007 |
|
@Description: |
1008 |
|
@@lang:en |
1009 |
|
@@@: |
1010 |
|
A DOM implementation with HTML-specific methods. |
1011 |
|
\ |
1012 |
|
{NOTE:: The <IF::HTMLDOMImplementation> was part of |
1013 |
|
the W3C's DOM Level 2 HTML Candicate Recommendation |
1014 |
|
but later removed. The manakai DOM implementation |
1015 |
|
has been decided to include this interface since |
1016 |
|
there are a number of implementations supporting |
1017 |
|
the <M::HTMLDOMImplementation.createHTMLDocument> method |
1018 |
|
and the DOM Level 3 Core Specification belives:-) that |
1019 |
|
there is a <M::createHTMLDocument> method. |
1020 |
|
\ |
1021 |
|
} |
1022 |
|
|
1023 |
|
@Method: |
1024 |
|
@@Name: createHTMLDocument |
1025 |
|
@@Description: |
1026 |
|
@@@lang:en |
1027 |
|
@@@@: |
1028 |
|
Creates an <IF::HTMLDocument> object with the minimal tree |
1029 |
|
made of <HE::html>, <HE::head>, <HE::title> and <HE::body> elements. |
1030 |
|
\ |
1031 |
|
{NOTE:: This method creates a (non-XML) HTML document. To create |
1032 |
|
a XHTML document, use <M::DOMCore:DOMImplementation. |
1033 |
|
createDocument> with a root element type |
1034 |
|
<Q::xhtml1:html> or with an appropriate document type |
1035 |
|
node. |
1036 |
|
\ |
1037 |
|
} |
1038 |
|
|
1039 |
|
@@For: |
1040 |
|
ManakaiDOM:ManakaiDOMLatest |
1041 |
|
|
1042 |
|
@@Param: |
1043 |
|
@@@Name:title |
1044 |
|
@@@Type: |
1045 |
|
DOMMain:DOMString |
1046 |
|
@@@actualType: |
1047 |
|
DOMMain:ManakaiDOMString |
1048 |
|
@@@Description: |
1049 |
|
@@@@lang:en |
1050 |
|
@@@@@: |
1051 |
|
The title of the document to create. It is set as the content of |
1052 |
|
the <HE::title> element, through a child <IF::DOMCore:Text> node. |
1053 |
|
@@Return: |
1054 |
|
@@@Type: HTMLDocument |
1055 |
|
@@@actualType: ManakaiDOMHTMLDocument |
1056 |
|
@@@Description: |
1057 |
|
@@@@lang:en |
1058 |
|
@@@@@: |
1059 |
|
A newly created HTML document. |
1060 |
|
@@@PerlDef: |
1061 |
|
my $node = $r-><M::DOMCore:ManakaiDOMDocument.newObject>; |
1062 |
|
$node->{<Q::DOMCore:implementation>} = $self; |
1063 |
|
$node->{<Q::ManakaiDOM:implID>} |
1064 |
|
= $self->{<Q::TreeCore:node>}->{<Q::ManakaiDOM:implID>}; |
1065 |
|
$node->{<Q::DOMCore:hasFeature>}->{HTML} = 1; |
1066 |
|
$r = <ClassM::DOMCore:ManakaiDOMNode.getNodeReference> ($node); |
1067 |
|
$r-><M::DOMCore:Node.appendChild> |
1068 |
|
(my $html = $r-><M::DOMCore:Document.createElement> |
1069 |
|
('HTML')); |
1070 |
|
$html-><M::DOMCore:Node.appendChild> |
1071 |
|
(my $head = $r-><M::DOMCore:Document.createElement> |
1072 |
|
('HEAD')); |
1073 |
|
$head-><M::DOMCore:Node.appendChild> |
1074 |
|
(my $titleEl = $r-><M::DOMCore:Document.createElement> |
1075 |
|
('TITLE')); |
1076 |
|
if (length $title) { |
1077 |
|
$titleEl-><M::DOMCore:Node.appendChild> |
1078 |
|
($r-><M::DOMCore:Document.createTextNode> ($title)); |
1079 |
|
} |
1080 |
|
$html-><M::DOMCore:Node.appendChild> |
1081 |
|
($r-><M::DOMCore:Document.createElement> |
1082 |
|
('BODY')); |
1083 |
|
|
1084 |
|
IF: |
1085 |
|
@Name: |
1086 |
@@@: HTMLDocument |
@@@: HTMLDocument |
1087 |
@@ForCheck: |
@@ForCheck: |
1088 |
ManakaiDOM:ForIF |
ManakaiDOM:ForIF |
1740 |
dis:ResourceDef |
dis:ResourceDef |
1741 |
@ShadowContent: |
@ShadowContent: |
1742 |
@@rdf:type: |
@@rdf:type: |
1743 |
rdfs:Property |
rdf:Property |
1744 |
@@AliasFor: |
@@AliasFor: |
1745 |
@@@@: |
@@@@: |
1746 |
::ManakaiDOM:all |
::ManakaiDOM:all |