搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Disable auto closing of HTML tags??

  • 4 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

So I am not a coder for anything special. I just write basic HTML for formatting on Deviantart. I'm having an issue where Firefox automatically closes my HTML tags without me wanting it to.

EXAMPLE:
<*blockquote>text
more text
more text
<*/blockquote>

DOES NOT WORK. Firefox automatically changes it to the following:

<*blockquote>text<*/blockquote>
more text
more text

I need to know how to disable this if possible, otherwise I have to switch browsers because this is a very tedious issue for me when I'm trying to write simple HTML code.

So I am not a coder for anything special. I just write basic HTML for formatting on Deviantart. I'm having an issue where Firefox automatically closes my HTML tags without me wanting it to. EXAMPLE:<br> <*blockquote>text<br> more text<br> more text<br><*/blockquote> DOES NOT WORK. Firefox automatically changes it to the following: <*blockquote>text<*/blockquote><br> more text<br> more text<br> I need to know how to disable this if possible, otherwise I have to switch browsers because this is a very tedious issue for me when I'm trying to write simple HTML code.

由 Yuuwu 於 修改

被選擇的解決方法

Hi Yuuwu, I don't think Firefox has anything nearly that fancy built-in. The site may be using a rich text editor that provides tag completion. While such editors generally are developed to be cross-browser compatible, there sometimes are differences.

There is an issue with old versions of VBulletin related to a change in Firefox 60 that made Firefox more like other browsers, which then conflicted with their editor's special handling of Firefox. You could try the following change to see whether the Deviantart editor has the same issue:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste newline and pause while the list is filtered

(3) Double-click the editor.use_div_for_default_newlines preference to switch the value from true to false (was false in Firefox 57-59)

Any difference?

從原來的回覆中察看解決方案 👍 1

所有回覆 (4)

more options
more options

Firefox likes it's cache cleaned a lot when your coding.

If it is changing your code is it possible there is something wrong with your code as it does only what you tell it to do.

W3C.org in charge of web standards of code for browsers and web sites.

You may want this version of Firefox, or not : *https://www.mozilla.org/en-US/firefox/developer/ It has a compatibility mode so can run both. But should do this as shares Profile.

more options

選擇的解決方法

Hi Yuuwu, I don't think Firefox has anything nearly that fancy built-in. The site may be using a rich text editor that provides tag completion. While such editors generally are developed to be cross-browser compatible, there sometimes are differences.

There is an issue with old versions of VBulletin related to a change in Firefox 60 that made Firefox more like other browsers, which then conflicted with their editor's special handling of Firefox. You could try the following change to see whether the Deviantart editor has the same issue:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste newline and pause while the list is filtered

(3) Double-click the editor.use_div_for_default_newlines preference to switch the value from true to false (was false in Firefox 57-59)

Any difference?

more options

You can try to use Shift + Enter (line feed) to start on a new line instead of Enter to see if that works better.

The only place I know of where Firefox closes tags is in the left (markup) pane in the Inspector if you use Edit HTML.