Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

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

Learn More

Firefox seems to be breaking my html code

  • 2 个回答
  • 1 人有此问题
  • 7 次查看
  • 最后回复者为 edwardsmarkf

more options

hello -

I have the following HTML:

<a class='login' href='https://mydomain.com/'>

<img width='200' height='50' src='https://developers.google.com/identity/images/btn_google_signin_dark_normal_web.png' alt='Login Logo' /> <!--notice trailing space character and forward-slash character-->

</a>

This works fine in Chrome, but in Firefox 68.0.1, the trailing space and the slash character between the last single quote and the close-arrow character of the tag is being eliminated when the page loads, so the HTML looks more like this:

.............._normal_web.png' alt='Login Logo' ></a>

and the image is not loading, and instead, the "alt" text appears instead.

However, when i RIGHT_CLICK it, select "Inspect element" and "Edit HTML", then and add the space and forward-slack back in the code, then it looks fine.

Does anybody have any thoughts why firefox might be eliminating the space and forward-slash character? is there an easy workaround?

Here is the URL that is failing: https://comptonpeslonline.com/assignments/

hello - I have the following HTML: &lt;a class='login' href='https://mydomain.com/'> &lt;img width='200' height='50' src='https://developers.google.com/identity/images/btn_google_signin_dark_normal_web.png' alt='Login Logo' />&nbsp;&lt;!--notice trailing space character and forward-slash character--> &lt;/a> This works fine in Chrome, but in Firefox 68.0.1, the trailing space and the slash character between the last single quote and the close-arrow character of the <img> tag is being eliminated when the page loads, so the HTML looks more like this: .............._normal_web.png' alt='Login Logo' ></a> and the image is not loading, and instead, the "alt" text appears instead. However, when i RIGHT_CLICK it, select "Inspect element" and "Edit HTML", then and add the space and forward-slack back in the code, then it looks fine. Does anybody have any thoughts why firefox might be eliminating the space and forward-slash character? is there an easy workaround? Here is the URL that is failing: https://comptonpeslonline.com/assignments/

由edwardsmarkf于修改

被采纳的解决方案

never mind, fixed it with css, but it still seemed pretty odd....

i figure it works in chrome, it should work the same in firefox.

定位到答案原位置 👍 0

所有回复 (2)

more options

<deleted>

由edwardsmarkf于修改

more options

选择的解决方案

never mind, fixed it with css, but it still seemed pretty odd....

i figure it works in chrome, it should work the same in firefox.