A _javascript_ property is not the same as an element attribute. It is unfortunate that some attributes like "onclick" get mapped from attributes to properties, but this is a special case for compatibility. But if you later change the onclick property the attribute doesn't change. The equivalent of 'myObject.command = value' in ObjC is '[myObject setValue:value forKey:@"command"]'. Then the matching call '[myObject valueForKey:@"command"]' to get the value back. _javascript_ has the same setAttribute and getAttribute methods if you do want to change an attribute. Hope this helps. — Timothy Hatcher On Oct 26, 2006, at 8:47 AM, Rudi Sherry wrote: I'm working with a WebView where I use DOM object manipulation in objective-c combined with _javascript_. |
_______________________________________________ webkit-dev mailing list webkit-dev@opendarwin.org http://www.opendarwin.org/mailman/listinfo/webkit-dev