开发者

Firefox displaying extra <strong> tags, but there not in the html source? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

My website in acting stangely while being viewed in firefox so I started debugging and found firefox only is adding extra <strong> tags in my code, all empty?

开发者_StackOverflow社区

Any ideas?

http://allia.honestideas.co.uk/


Any time the generated markup differs from the markup retrieved from the server (i.e., the markup you get when doing "View Source"), JavaScript is involved. The only way the structure of the page can be different from the markup you wrote is if JavaScript is making changes.

In this case, the extra <strong> tags all seem to be clustered immediately around the slider markup. I can't find any obvious explanation in slider.js but it's also not a plugin I'm intimately familiar with. Removing slider.js from the page entirely should solve the problem, but of course you then won't have the functionality you want. Perhaps a different plugin can offer the same functionality without the unintended side-effects.


Firefox is not adding anything. If you look at 'view source', there are no strong tags in there. So what debugger are you using? I'd bet the debugger is inserting something.


In firebug, I see a strong syntax in the code

#mainContent strong, #mainContent label

may be this causing some issues. I am not sure too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜