[webkit-dev] getting contents of noscript element through DOM
Hi, It seems that with webkit, the contents of the noscript tag cannot be accessed through the DOM. FF and IE (haven't tested other browsers) allow access through the textContent property but in Safari and Chrome this just comes back blank. I've tried looking through the WebKit code to see why this is happening but admit to being a little lost. So my question is, is there a way to access the content of a noscript tag through JavaScript? If not, would an enhancement request to allow this be met favorably? Here's the particular use case I am working on. A common technique when embedding Flash in an HTML page is to first place an alternate content div inside the HTML and then to replace that div with the Flash movie if it's determined that the browser has JavaScript enabled and a high enough version of the Flash player installed. The problem with this approach is that heavy alternate content can hurt performance even when it is not needed. For example, if it contains images, those images will be put in the browser's load queue before the Flash movie. So even though the image elements are removed from the DOM and replaced with an embedded Flash movie, those images must still load prior to the browser loading the Flash movie. (If anyone knows how to remove an image from the load queue that might also be helpful.) An approach to solving this problem that I have been trying has been to place the alternate contents in a noscript tag. If the browser has JavaScript disabled then the alternate content is shown. And if the browser has JavaScript enabled but an older version of Flash installed, I basically replace the noscript element with its contents rendered as HTML. When this approach works, it's great because the alternate content HTML and images are only parsed and added to the loader queue if needed. Hopefully this use case is reasonable enough to sway anyone away from saying the noscript tag should act as a impenetrable barrier between a browser with JavaScript enabled and one without. Thanks, Mike -- View this message in context: http://www.nabble.com/getting-contents-of-noscript-element-through-DOM-tp25858906p25858906.html Sent from the Webkit mailing list archive at Nabble.com. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Text Input does not work running WebKit/GTK+/Directfb
I am having a problem running Webkit. I downloaded a version (38297) several months ago, and got it building and running on Ubuntu Linux. I have also ported it to run on a PPC platform, using GTK+ and DirectFB on my PPC hardware However, when I run my port on the PPC hardware, I see a couple unexpected behaviours. I have spend several days trying to track down the root cause, but not luck yet. I am running GtkLauncher demo program. Here is a summary of what I see 1. Text input works if I enter text in, for example, the URL field of the browser. 2. When I enter text in a HTML Text Input Element, it does not show up 3. Any initial value that is specified for a HTML Text Input Element does not appear. I have seen others post problems like this, but no conclusive indication of what the problem was, or more importantly how to find what the problem is. I think one person indicated that ICU was not built correctly. I think my ICU is ok, so how do I prove otherwise. Finally, I do see the input events getting dispatched into WebCore::EventTargetNode::dispatchEvent - Mike -- View this message in context: http://www.nabble.com/Text-Input-does-not-work-running-WebKit-GTK%2B-Directfb-tp25751468p25751468.html Sent from the Webkit mailing list archive at Nabble.com. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] adding script type to webcore
Hello, Forgive me if this is a very vague question, but where should i start in webkit to view how it implements the script tag and how it starts evaluating JS. I'm looking into adding a new script type and having it evaluated and run. thx AC ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] adding script type to webcore
On Oct 17, 2009, at 1:47 PM, Alexander Cohen wrote: Hello, Forgive me if this is a very vague question, but where should i start in webkit to view how it implements the script tag and how it starts evaluating JS. I'm looking into adding a new script type and having it evaluated and run. You can start by looking at the implementation of the ScriptElement class, which handles script evaluation for HTML script and SVG script. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] adding script type to webcore
On Oct 17, 2009, at 5:07 PM, Dan Bernstein wrote: On Oct 17, 2009, at 1:47 PM, Alexander Cohen wrote: Hello, Forgive me if this is a very vague question, but where should i start in webkit to view how it implements the script tag and how it starts evaluating JS. I'm looking into adding a new script type and having it evaluated and run. You can start by looking at the implementation of the ScriptElement class, which handles script evaluation for HTML script and SVG script. Excellent, great place to start. thx AC ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Text Input does not work running WebKit/GTK+/Directfb
On Tue, Oct 6, 2009 at 1:26 AM, mike999 mikekl...@insightbb.com wrote: I am having a problem running Webkit. I downloaded a version (38297) several months ago, and got it building and running on Ubuntu Linux. I have also ported it to run on a PPC platform, using GTK+ and DirectFB on my PPC hardware However, when I run my port on the PPC hardware, I see a couple unexpected behaviours. I have spend several days trying to track down the root cause, but not luck yet. Hi Mike I suggest you take this to webkit-help as this list about WebKit development discussions. In addition, I also suggest that you raise a bug report against the WebKit Gtk component and include the information you provided below in your bug report. Thanks! Jan ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev