语言

Menu
Sites
Language
innerhtml not supported with wearable 2.3.1 or 2.3.2 ?

Hi,

 

I am developing a web application for Gear s2 and s3. My app sets the content of a "div" element using innerhtml command like :

document.getElementById("box").innerHTML = '<font color="#ffffff"><b>test</b>';

 

This shows the result fine with Gear S3 but on S2 , content is not set.

I understand that innerhtml is not supported in wearable 2.3.x

Instead textContent is supported here:

https://developer.tizen.org/development/guides/web-application/application-management/applications/widget-application?langswitch=en#user-content-is-innerhtml-or-innertext-supported

 

But that did not work for me. What else can I use ?

 

thanks.

 

 

 

响应

1 回复
mekabe remain

nevermind. I found that the problem is not about innerhtml but the testing condition.