Bug 77731

Summary: [Qt] QWebElement.appendInside - JavaScript not working inside of added HTML fragment
Product: WebKit Reporter: Andreenko Sergey <s.andreenko>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Severity: Blocker    
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Andreenko Sergey 2012-02-03 05:46:20 PST
I have some HTML code that I create in app and viewing in QWebView. Periodically I need to add fragment to DOM, this fragment reads from file and can include some javascript code.

Fragment like this

    <div class="space">&nbsp;</div>
    <div class="in MessageIn" id="oneShot">
        <div class="tr">
            <div class="bl">
                <div class="br">
                    <p class="head">
                        <span class="time" id="time">%time%</span>
                        <span class="name" id="name">%name%</span>
                    <p class="content">
                        <span class="text" id="text"><script>getitall('%text%','%name%','%cid%','%base%',meldungsart[0]);</script></span>
<script type="text/javascript">animation1();</script> 

JavaScript functions getitall and animation1() are not being executed.
Comment 1 Jocelyn Turcotte 2014-02-03 03:19:59 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.