FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 608 : XHTML code won't create DOM element
Last modified: 2007-08-19 00:49
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
fjen
Assigned To:
fjen
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-08-08 08:00
here's more:
http://processing.org/discourse/yabb_beta/YaBB.cgi
?
board=Integrate;action=display;num=1186537700
Additional Comment
#1 From fjen 2007-08-19 00:49
closing.
DOM node is created, although FF seems to have trouble with it (won't show up correctly in
firebug and it reports that it can iterate over applet[...] because "it's missing
__iterator__" ).
- add id="applet_outer" to first <object>
- add script below to body
- edit container name to have correct sketch_name
- run in firefox with firebug installed
<script type="application/x-javascript" >
var pinit = function ( event )
{
// start from container, print all childnodes
var container = document.getElementById( "sketch_070819a_container" );
for ( var num in container.childNodes )
{
console.log( " ---------------------------------- " );
console.log( container.childNodes[num] );
var node = container.childNodes[num].nodeName;
// print elements of childnode, this will print the applet-functions / -vars too
for ( var attr in container.childNodes[num] )
{
console.log( node + " " + attr + " " + container.childNodes[num][attr] );
};
};
// get the applet and print it's parentNode
var applet = document.getElementById( "applet_outer" );
console.log( applet.parentNode );
};
addEventListener( 'load', pinit, false );
</script>
F