Closed
Bug 302639
Opened 19 years ago
Closed 19 years ago
style {display:none} not applied to span
Categories
(Core :: DOM: HTML Parser, defect)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
INVALID
People
(Reporter: jmittleman, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file, 1 obsolete file)
|
346 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050519 Red Hat/1.7.8-0.90.1gg1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050519 Red Hat/1.7.8-0.90.1gg1
The following HTML displays incorrectly. I have reproduced this bug in Firefox
1.0.4 on Windows and Linux, Mozilla/5.0 on Linux. It renders correctly in IE
and Konqueror. The {display:none} style is not applied to the text within the
span in the second example on the page; notice that the difference between the
two examples is only the addition of the unbalanced <nobr> tag before the <span>
in the second example.
<html>
<head>
<style>
<!--
.hide{display:none}
//-->
</style>
</head>
<body>
The text after this colon is correctly invisible:
<span class="hide"><nobr>This text is not visible; that's correct.</nobr></span>
<p>
The text after this colon should be invisible, too:
<nobr>
<span class="hide"><nobr>Oops.</nobr></span>
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1. Save the given HTML to file. Open it with any of the specified browsers.
Actual Results:
You see the following
---------------------
The text after this colon is correctly invisible:
The text after this colon should be invisible, too: Oops.
Expected Results:
You should see this
-------------------
The text after this colon is correctly invisible:
The text after this colon should be invisible, too:
Updated•19 years ago
|
Severity: minor → normal
Component: General → Layout
Keywords: testcase
Product: Firefox → Core
QA Contact: general → layout
Summary: style {display:none} not applied to span → style {display:none} not applied to span
Version: unspecified → Trunk
Comment 2•19 years ago
|
||
The testcase uploaded by José Jeria was somehow truncated. This is (hopefully) the reporter's actual testcase.
Updated•19 years ago
|
Attachment #190952 -
Attachment is obsolete: true
Comment 3•19 years ago
|
||
This is a parser issue, and probably invalid. Since <nobr> elements can't be nested, upon reaching the second <nobr> opening tag, the parser implicitly closes the first nobr element, which means it also closes any elements contained within it (in this case, the span element with class="hide"). Therefore, anything inside the second nobr element is not inside that span.
Component: Layout → HTML: Parser
Updated•19 years ago
|
Attachment #190954 -
Attachment description: Reporter's tescase → Reporter's testcase
Updated•19 years ago
|
Assignee: nobody → parser
QA Contact: layout → mrbkap
Comment 4•19 years ago
|
||
Yep. This is invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•