[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 10:07:00 PDT 2009


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





--- Comment #13 from Ryosuke Niwa <rniwa at webkit.org>  2009-08-18 10:06:59 PDT ---
(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.

-- 
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