New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 863675 link

Starred by 5 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Element.prototype.removeAttribute doesn't work as expected

Reported by hakerh403@gmail.com, Jul 14

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36

Steps to reproduce the problem:
1. Run the provided test-case script
2. Observe that "1" is printed instead of "0"

What is the expected behavior?
0 should be printed always.

What went wrong?
Number "1" is printed 90% of times. Only 10% of times (and only if devtools are open and the "Elements" tab is active) the script prints number "0". In Firefox it always prints "0" as expected.

Did this work before? N/A 

Chrome version: 67.0.3396.87  Channel: stable
OS Version: 6.3
Flash Version: /
 
index.htm
26 bytes View Download
1.js
742 bytes View Download
Screencast.mp4
7.0 MB View Download
Seems to happen only with the "style" attribute.
Observed since at least Chrome 30, also in Canary.
Simplified code:

<body>
<script>
  document.body.style.opacity = '0';
  document.body.removeAttribute('style');
  document.body.textContent = document.body.hasAttribute('style') ? 'FAIL' : 'OK';
</script>
</body>

Components: -Blink Platform>DevTools
As this is happening when devtools is open, can devtools team take a look
at this first?
Labels: Needs-Triage-M67
Cc: swarnasree.mukkala@chromium.org
Labels: Triaged-ET M-69 Target-69 FoundIn-69
Status: Untriaged (was: Unconfirmed)
As per comment #1 able to reproduce the issue on 60.0.3112.32(M-60),reported version 67.0.3396.87 and latest chrome canary 69.0.3494.0 on Windows 10. This is a non-regression issue as it is observed from M60 old builds.

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
Cc: kochi@chromium.org
Components: -Platform>DevTools Blink>HTML
@kochi -- this happens when devtools are open, but it also happens without devtools :-)
Components: -Blink>HTML Blink>DOM
Labels: Hotlist-Interop
Status: Available (was: Untriaged)
Sounds a bug of attribute synchronization, which delays serialization of element.style changes.


Sign in to add a comment