[Webkit-unassigned] [Bug 16065] WebKit cannot remove h* tags using removeFormat but adds style-span instead

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 18 11:28:18 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=16065





--- Comment #14 from Anders Jenbo <fuck at os.dk>  2009-08-18 11:28:17 PDT ---
Created an attachment (id=35056)
 --> (https://bugs.webkit.org/attachment.cgi?id=35056)
Samples of how safari and othere browsers handle the unformat command on some
code from apple.com

Here is a more extensive sample of what is going on.

The code for this sample was taken from http://www.apple.com/macosx/ using copy
and past in safari. Note that Safari decides to use an illegal <span> around
the content to set the font etc. After executing the unformat command, the <h3>
is now enveloping all the content, a <font> and <span> has been added inside to
counter this, but the <span> misses the fist list item, leaving the first two
lines bolted.

Notice how safari still adds <span style="font-weight: normal;"> around one of
the lines.
It also seams to fail to remove the formatting from the empty span tag in the
beginning plus a lot of the styling on the <h3> and <ul> tags, also an empty
<ul> is illegal. All links have also been striped.

I have also included results from IE 8 and FF 3.5.2 for comparison, note that
they are not perfect either.

IE doesn't handle css so all of that is piratically left alone.

FF gets close, but still leaves a chunk of style on every element.

lastly is a expected case.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list