This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 140199 - Useless warnings about <font> tags
Summary: Useless warnings about <font> tags
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2008-07-16 06:06 UTC by Torbjorn Norbye
Modified: 2008-07-29 09:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2008-07-16 06:06:35 UTC
I often see output like this on the console:

WARNING: Could not find color identifier in font declaration
WARNING:   <font><b>SA_ALL</b></font>
WARNING:   ^
WARNING:  Full HTML string:<font><b>SA_ALL</b></font>
WARNING: Illegal hexadecimal color text: font>< in HTML string
WARNING:   <font><b>SA_ALL</b></font>
WARNING:   ^
WARNING:  Full HTML string:<font><b>SA_ALL</b></font>
WARNING: Unresolvable html color: font>< in HTML string 
WARNING:   
WARNING:   <font><b>SA_ALL</b></font>
WARNING:   ^
WARNING:  Full HTML string:<font><b>SA_ALL</b></font>


It looks like the HTML renderer (presumably the navigator one, or perhaps the one used for code completion, I'm not sure
exactly) is upset when it sees a <font> tag without a color definition.  I think shows up a lot when we're 
rendering third party HTML, such as documentation.   I don't think it should complain about this case, it should just
ignore the <font> tag.
Comment 1 Stanislav Aubrecht 2008-07-17 16:26:40 UTC
it's coming from PatchedHtmlRenderer in editor.completion
Comment 2 Vitezslav Stejskal 2008-07-22 10:51:54 UTC
Looks like it is.
Comment 3 Dusan Balek 2008-07-29 09:43:21 UTC
Fixed.

changeset b89cc30cee80 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=b89cc30cee80