Bug P3
Status Update
Comments
di...@chromium.org <di...@chromium.org> #2
reporter@, could you explain your step 3 further? Do you select using your cursor or in the console using javascript?
I followed the above steps using the my cursor on Mac and I am not able to reproduce:
data:text/html;charset=utf-8,Some text<details>
I followed the above steps using the my cursor on Mac and I am not able to reproduce:
data:text/html;charset=utf-8,Some text<details>
an...@salesforce.com <an...@salesforce.com> #3
Hi thank you for your response
I selected text using my cursor then used Command+C to copy
Then go to some other rich text editor or WYSWYG editor and paste it. Important part here is pasting needs to happen in a place that would try to interpret the HTML that got copied.
I would recommend something like TinyMCE fiddle(https://fiddle.tiny.cloud/ ) or even google Doc.
I have also verified it with my team with various other mac machines.
Attaching my source code, screenchot of rendered page and selection and output after paste below:
some text
<details>
<summary>The details tag1</summary>
<p>This is a details tag with content</p>
</details>
<details>
<summary>The details tag2</summary>
<p>This is a details tag with content</p>
</details>
<details>
<summary>The details tag3</summary>
<p>This is a details tag with content</p>
</details>
end text
I selected text using my cursor then used Command+C to copy
Then go to some other rich text editor or WYSWYG editor and paste it. Important part here is pasting needs to happen in a place that would try to interpret the HTML that got copied.
I would recommend something like TinyMCE fiddle(
I have also verified it with my team with various other mac machines.
Attaching my source code, screenchot of rendered page and selection and output after paste below:
some text
<details>
<summary>The details tag1</summary>
<p>This is a details tag with content</p>
</details>
<details>
<summary>The details tag2</summary>
<p>This is a details tag with content</p>
</details>
<details>
<summary>The details tag3</summary>
<p>This is a details tag with content</p>
</details>
end text
pe...@google.com <pe...@google.com> #4
Thank you for providing more feedback. Adding the requester to the CC list.
di...@chromium.org <di...@chromium.org> #5
Thank you for the explanation, I was able to reproduce when copying into Google Doc.
The logic is likely in how we handle clipboard commands:https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/clipboard_commands.cc;l=443;drc=300eedb1a7cab97d75a711c767eb0e0538df36ad
Forwarding to DataTransfer to triage further.
The logic is likely in how we handle clipboard commands:
Forwarding to DataTransfer to triage further.
Description
Chrome Version: 133.0.6943.142
OS: All
What steps will reproduce the problem?
(1) Create an HTML page with <details> tag
(2) Load the page in chrom
(3) Select and Copy the page upto the tag
What is the expected result?
Only the selected portion should be copied
What happens instead?
Entire page gets copied
Please use hotlists and text to provide additional information.
If this is a regression (i.e., worked before), please consider using the bisect tool (
For graphics-related bugs, please copy/paste the contents of the about://gpu page at the end of this report.
Upload Chrome variations which can help us investigate this issue.
1 Open Chrome. Go to chrome://version/?show-variations-cmd
2 Notice that there is a "Command-line variations" section(you might need to scroll down the page). Copy and save the value of the section to a txt file like variations.txt.
3 Upload the file to this bug as an attachment.