[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:33:15 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=16065
--- Comment #15 from Anders Jenbo <fuck at os.dk> 2009-08-18 11:33:14 PDT ---
(In reply to comment #13)
> (In reply to comment #11)
> > The correct thing to do is remove any css or styling tags from the selected
> > content, in the latest version safari removes all styling, all images and
> > converts all spaces to , in 3.x spaces where left alone.
> There is a separate bug that states that removeFormat would delete image:
> https://bugs.webkit.org/show_bug.cgi?id=17926
> This bug should only be addressing the issue with h* tags since the original
> bug report mentions about h3 tag.
> That said, I'm not sure whether we should remove h* tags, ignore removeFormat
> (what Firefox does), or add style-span to remove format. Because h* tags are
> not presentational, removing them change the semantics of the content. But
> Firefox does provide execCommand('heading'..) so its seems a bit odd that it
> doesn't support removing h* tags. I think it's probably safe to remove it but
> need more research on this.
I think you are right in keeping <h3>, firefox does have a command to remove
h3's it's called FormatBlock and will change them in to <p>'s
This bug was not meant to be exclusively about headings but about the general
habit of safari applying it's default styling to every thing when unformating.
--
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