New issue
Advanced search Search tips

Issue 913206 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Elements panel highlighting unnecessarily for the same text node value

Reported by cahitgur...@gmail.com, Dec 8

Issue description

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

Steps to reproduce the problem:
Whenever something is change on DOM, Elements panel highlighting them which is a great feature but...

1. Go to any page inspect any element that has a text node
2. Set the nodeValue to the exactly the same value e.g. $0.firstChild.nodeValue; $0.firstChild.nodeValue = $_; 
3. Element panel is highlighting the text node even though the nodeValue is not changed.

The same issue does not happen for attributes but it seems like something special with style attribute e.g. setting style from "display:none" to "display:none;" is highlighting the node at elements panel. I think(hope) this is not a change for CSS engine. You can argue that this is a change and highlighting is fine but then my question would be why calling the same with cssText does not highlight? e.g. 
$0.style.cssText = "display:none;" //highlights first time
$0.style.cssText = "display:none" // does not highlight

What is the expected behavior?
When nothing is changed there should not be any highlight.

What went wrong?
Elements panel highlighting unnecessarily

Did this work before? No 

Chrome version: 70.0.3538.110  Channel: n/a
OS Version: 10.0
Flash Version:
 
Labels: Needs-Triage-M70
Owner: l...@chromium.org
Status: Assigned (was: Unconfirmed)

Sign in to add a comment