[Webkit-unassigned] [Bug 200569] New: Copied table from Google Docs is stripped of metadata

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 9 04:31:20 PDT 2019


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

            Bug ID: 200569
           Summary: Copied table from Google Docs is stripped of metadata
           Product: WebKit
           Version: Safari 12
          Hardware: Unspecified
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: vepomoc at gmail.com
                CC: wenson_hsieh at apple.com

Steps to reproduce:

1. Open https://docs.google.com/document/d/1EdVmbZBsieJJryJfTuax2UI0zWAfTfo6dyXb1sfWChM/edit
2. Select all and copy.
3. Paste into https://jsfiddle.net/Comandeer/dnjsgk46/

The same content copied and pasted in Chrome and Firefox is correctly detected as content from Google Docs. However in Safari it's not. Safari seems to do some kind of normalization on copy and fixes incorrect HTML code provided by GDocs.

Content in Chrome: https://gist.github.com/Comandeer/397d9611684d6c5d6dc632cc0ee37b33
Content in Safari: https://gist.github.com/Comandeer/a947fcb4ff4ad0ac2ae5a599cde65655

As shown on the above example, Safari deletes the b element, which wraps the whole div with the table, resulting in loss of metadata (b[id] attribute).

Probably the bug is connected with https://bugs.webkit.org/show_bug.cgi?id=191836.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190809/8e7c27e4/attachment.html>


More information about the webkit-unassigned mailing list