You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "Gonzalo Ruiz (JIRA)" <ji...@apache.org> on 2018/05/02 19:35:00 UTC

[jira] [Created] (WEEX-330) component not updating title on web renderer

Gonzalo Ruiz created WEEX-330:
---------------------------------

             Summary: <web> component not updating title on web renderer
                 Key: WEEX-330
                 URL: https://issues.apache.org/jira/browse/WEEX-330
             Project: Weex
          Issue Type: Bug
          Components: Web Renderer
    Affects Versions: 0.12
         Environment: Firefox 59, Ubuntu 17.10 x64, Both dotwe.org and the weex command line tool v1.3.4 (latest release in npm). It seems to carry out through several versions.
            Reporter: Gonzalo Ruiz
            Assignee: Danz He


Cannot read a "web" component's <title> on the web renderer. It works on Android but the value is simply "" on the web renderer.

I'm using the title tag to pass an auth token from a webview to the app's JS code to execute a login, but my code only works on a real device, making development troublesome.

 

Link to reproduce the issue:

[http://dotwe.org/vue/0e21b48adcc302ca8c90449e083acf62]

 

This is a resource to aid with fixing the issue: a jsFiddle demo that successfully retrieves the title from an iframe object:

[https://jsfiddle.net/wLvdexkq/]

The only code that needs to be executed is the following:

document.getElementById("main-content-iframe").contentDocument.title

But mind that this needs to be executed when the iframe loads.

 

Thanks.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)