Closed
Bug 403384
Opened 18 years ago
Closed 18 years ago
text color not maintained after end of line. IE and Opera browsers work correctly
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: greenhorn, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
I've created example at http://www.writing.com/main/handler/item_id/1346283
Lines of text are posted one at a time into file with option to specify color of text. This color should be maintained on all subsequent lines entered until new color is specified. Firefox reverts to black as color of text after displaying the line on which the new color is specified. IE and Opera browsers do not.
Reproducible: Always
Steps to Reproduce:
1.go to http://www.writing.com/main/handler/item_id/1346283
2.
3.
Actual Results:
see example at http://www.writing.com/main/handler/item_id/1346283
Expected Results:
Maintain the specified text color until a new text color is specified. (If you look at the file using IE or Opera, you will see what should happen.)
This site (www.writing.com) uses its own mark up language to specify colors - for example {c:blue} entered in a text line changes subsequent text color to blue.
The site generates the appropriate HTML code to perform this.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007111104 Minefield/3.0b2pre
The result in latest nightly is the same as in 2.0.0.9 for the above testcase.
Created 3 testcases:
Testcase1: http://bings.demon.nl/herwin/fontcolor1.html
Testcase2: http://bings.demon.nl/herwin/fontcolor2.html
Testcase2: http://bings.demon.nl/herwin/fontcolor3.html
Please note that in the testcase the </span> is missing as the above
webpage also has the end tag missing.
Result testcase 1: Second line is not colored
The <span> tag moved to after the <p> but before the <font> tags
Result testcase 2: Second line is not colored
The <span> tag moved to before the <p> tag
Result testcase 3: Both lines are colored
Looks like the <span> tag is closed with the </p> tag if the <span> is after
the <p> and not closed before </p>
Updated•18 years ago
|
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → parser
Comment 2•18 years ago
|
||
This is probably invalid: Since <span> is a character level (inline) elements, it cannot cross <p> boundaries and is automatically closed when the containing block is closed, AFAIK.
There is no way to correctly guess whether the author intended to apply the unclosed <span> to both <p> elments.
Comment 3•18 years ago
|
||
Closing as invalid due to the reason given in comment #2.
See also bug 169316 for a similar case.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•