Closed Bug 425834 Opened 17 years ago Closed 17 years ago

SHOWFOR doesn't hide text with headings

Categories

(support.mozilla.org :: Knowledge Base Software, task, P2)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cilias, Assigned: nkoth)

References

Details

(Whiteboard: sumo_only)

Does not hide text: {SHOWFOR(os=linux)} !level 1 heading text {SHOWFOR} Does hide text: !level 1 heading {SHOWFOR(os=linux)} text {SHOWFOR} Further testing: <http://support.mozilla.com/en-US/kb/Testing>
Assignee: nobody → nelson
Blocks: 422182
Judging from some other articles it doesn't seem dependent on headings. I not sure what the circumstances are, to replicate this.
Severity: normal → major
With further testing, it appears to be specific to level 1 headings (!).
Summary: SHOWFOR doesn't hide text with headings → SHOWFOR doesn't hide text with level 1 headings
Note: http://support.mozilla.com/en-US/kb/Firefox+crashes+when+using+Yahoo+Mail needs to be updated, when this bug is fixed. It's currently using a workaround.
Summary: SHOWFOR doesn't hide text with level 1 headings → SHOWFOR doesn't hide text with headings
Priority: -- → P2
Target Milestone: --- → 0.6.2
The problem was caused by javascript unsuccessfully attempting to change the visibility of the table of contents entry of the heading within the SHOWFOR in the cases where there is no table of contents on the page. This is solved by making the javascript check for the existence of that table of contents entry before trying to do anything. Fix in r17666/r17667
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: push-needed
Resolution: --- → FIXED
Removing "push-needed" keyword since this has been deployed to production.
Keywords: push-needed
While the underlying bug is verified fixed (based on my testing of it in http://support.mozilla.com/en-US/kb/Testing), the two URLs in comment 3 and comment 4 should be fixed; Chris, could you do the honors? Thanks!
The URLs in comment 3 and comment 4 are currently using workarounds (allow HTML, and use <h2>). I'll test them out now.
Yup. Verified.
Status: RESOLVED → VERIFIED
Whiteboard: sumo_only
You need to log in before you can comment on or make changes to this bug.