Closed Bug 270155 Opened 20 years ago Closed 20 years ago

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

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: andrew, Unassigned)

Details

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).
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
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.