Bug 77731 - [Qt] QWebElement.appendInside - JavaScript not working inside of added HTML fragment
Summary: [Qt] QWebElement.appendInside - JavaScript not working inside of added HTML f...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P3 Blocker
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 05:46 PST by Andreenko Sergey
Modified: 2014-02-03 03:19 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreenko Sergey 2012-02-03 05:46:20 PST
Hello!
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

<!--MessageIn-->
    <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>
                    <p class="content">
                        <span class="text" id="text"><script>getitall('%text%','%name%','%cid%','%base%',meldungsart[0]);</script></span>
                    </p>                    
            </div>
        </div>
    </div>
<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.