搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Simple HTML commands don't work right.

more options

I'm playing around with some IoT stuff and wrote a very simple HTML file. The file itself runs properly on Firefox but the simple HTML response from the remote device is often missed. When it isn't missed it is improperly displayed. A sample response from the remote device is the HTML text "Front off
Back on" (without the quotes). When it does display the response it fails to execute the HTML "
" command and simply displays it as part of the text. I also have a version that sends a response using an SVG command to draw a simple colored circle and that doesn't work either. I get the same results using Firefox on Windows 7 or the Firefox app for Android. I have none of these issues when I use Internet Explorer.

I'm playing around with some IoT stuff and wrote a very simple HTML file. The file itself runs properly on Firefox but the simple HTML response from the remote device is often missed. When it isn't missed it is improperly displayed. A sample response from the remote device is the HTML text "Front off<br>Back on" (without the quotes). When it does display the response it fails to execute the HTML "<br>" command and simply displays it as part of the text. I also have a version that sends a response using an SVG command to draw a simple colored circle and that doesn't work either. I get the same results using Firefox on Windows 7 or the Firefox app for Android. I have none of these issues when I use Internet Explorer.

所有回复 (4)

more options

No help here? I even manually sent a small but complete ( and valid) HTML script to the Firefox webpage and it still treats everything as literal text. Sure kills any desire to use Firefox for my Internet of Things projects.

more options

Sorry, this is a Firefox user support forum. Your query is along the lines of a development issue. Did you read the support article that I hyperlinked? It explains where you can get Firefox related help with development for Firefox.

more options

boomer48 said

When it does display the response it fails to execute the HTML "<br>" command and simply displays it as part of the text.

Is this a problem with an ordinary page request or a background request (XMLHttpRequest)?

Firefox usually observes the content-type headers sent from the embedded web server. Make sure it isn't being sent as (or processed as) text/plain.

由jscher2000 - Support Volunteer于修改