visibility style attribute not being rendered properly on SPAN tags when set to hidden.

RESOLVED INVALID

Status

()

Core
HTML: Parser
RESOLVED INVALID
13 years ago
13 years ago

People

(Reporter: Andrew D. Newbould, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707

Using: <span id="myHideCont" style="visibility='hidden';"><a
href="dummy.htm">Some Content</a></span>

This content should be hidden when a page loads (it does in other browsers)
however Mozilla 1.7.1 still displays the content. If you define an OnLoad
function to set the visibility to hidden (ie: myHideCont.style.visibility =
"hidden";) after the page loads the content gets hidden. 

Reproducible: Always
Steps to Reproduce:
1. Add [<span id="myHideCont" style="visibility='hidden';"><a
href="dummy.htm">Some Content</a></span>] to standard empty document.
2. Load page into Mozilla and content is still visible when should be hidden.


Actual Results:  
[Some Content] is rendered as a hyperlink on the screen despite the SPAN tag
having its visibility property set to "hidden".

Expected Results:  
the [Some Content] hyperlink should not be visible and therefore clickable until
the visibility style property is set back to "visible".

Using standard theme (no third party ones installed).

Comment 1

13 years ago
Do not use JavaScript syntax with the style attribute, the correct (and working) 
way to do this is <span style="visibility: hidden">.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.