Invalid attribute causes skiped text

VERIFIED FIXED

Status

()

Core
HTML: Parser
P2
normal
VERIFIED FIXED
19 years ago
19 years ago

People

(Reporter: Michael Lowe, Assigned: rickg)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

19 years ago
The text ABC does not display in the following example:

<html>
<body #000080>
ABC
</body>
</html>

This bug causes the page www.theage.com.au to layout incorrectly.
(Assignee)

Updated

19 years ago
Status: NEW → ASSIGNED
(Reporter)

Comment 1

19 years ago
Here is a patch to fix bug:

Index: nsHTMLTokens.cpp
===================================================================
RCS file: /cvsroot/mozilla/htmlparser/src/nsHTMLTokens.cpp,v
retrieving revision 3.60
diff -u -r3.60 nsHTMLTokens.cpp
--- nsHTMLTokens.cpp	1998/11/24 02:38:50	3.60
+++ nsHTMLTokens.cpp	1998/12/08 14:36:02
@@ -908,7 +908,7 @@
       result=aScanner.GetChar(aChar);        //skip the hash sign...
       if(NS_OK==result) {
         mTextKey=aChar;
-        result=aScanner.ReadWhile(mTextKey,gDigits,PR_TRUE,PR_TRUE);
+        result=aScanner.ReadWhile(mTextKey,gDigits,PR_TRUE,PR_FALSE);
       }
     }
     else {
(Reporter)

Comment 2

19 years ago
The page http://www.theage.com.au still lays out incorrectly even with this bug
fixed.
(Assignee)

Comment 3

19 years ago
All fixed with last (big) update to parsing engine.
(Reporter)

Updated

19 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.