Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

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.

Tất cả các câu trả lời (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.

Được chỉnh sửa bởi jscher2000 - Support Volunteer vào