Bug 17038 - Font size does not work correct when using the HTML GUI Editing on GuildPortal
Summary: Font size does not work correct when using the HTML GUI Editing on GuildPortal
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Evangelism (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: NeedsReduction
Depends on:
Blocks:
 
Reported: 2008-01-27 19:21 PST by Bryan Pietrzak
Modified: 2020-10-23 13:45 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Pietrzak 2008-01-27 19:21:43 PST
GuildPortal has a forums section. When editing a message there is a GUI HTML Editor. The font size is normally 1-7 in FireFox, etc. But in Safari 3 it looks to be point sizes. Trying to change any text to a different point size results in just BIG (48 pt) text appearing, and all point size changes fail - they are always set to 48pt.

To repro this, visit the GuildPortal site at http://www.guildportal.com/  you may need an account. Visit any site that has forums. For example, here's my guild from WoW: 

  http://www.guildportal.com/Guild.aspx?GuildID=37830&TabID=335619

Just go to any forum and create a new thread and try to edit the font size of some text in the message. It's 100% reproducible.

This happens in Safari 3 in 10.5.1 and the nighty build (r29807)
Comment 1 Alexey Proskuryakov 2008-01-28 09:37:40 PST
Did this work correctly in Safari 2?
Comment 2 Bryan Pietrzak 2008-01-28 10:42:43 PST
(In reply to comment #1)
> Did this work correctly in Safari 2?

GUI HTML editing in Safari 2 was pretty poor - enough so that I very rarely used it on GuildPortal. So to be honest I can't remember and don't have a 10.4 machine around to test.

Comment 3 Alexey Proskuryakov 2008-01-29 01:49:12 PST
For setting font size, the site uses execCommand: document.ecexCommand("FontSize", false, "10pt"). But the third parameter is supposed to be an HTML font size ("1" to "7").

Neither IE nor Firefox support point sizes as FontSize values - IE just ignores such a command, while Firefox sets the size to a maximum, just like WebKit.

Theoretically, it is possible that we are doing something wrong earlier, which results in a bad parameter value being passed. But chances are that the site has incorrect Safari-specific code that is not executed in other browsers. Possibly, this was a workaround for Safari 2 bugs which is now causing problems in Safari 3.

Moving to Evangelism. If you could contact the site webmaster bout this issue, that would be very appreciated!
Comment 4 Bryan Pietrzak 2008-01-29 08:17:52 PST
(In reply to comment #3)

> Moving to Evangelism. If you could contact the site webmaster bout this issue,
> that would be very appreciated!

Thank you. I've filed a bug report with GuildPortal and referenced this bug's URL so this info should get to them.

Comment 5 Robert Blaut 2008-12-26 12:13:10 PST
Changing User Agent to "Firefox" fixes the problem.