Output of DOM.getDocument has stale attributes |
|
Issue descriptionVerified on Linux 56.0.2924.14 unstable. If the HTML file contains: <input type="text" value="foo"> Then DOM.getDocument() always reports the "value" attribute set to "foo", even after the user edits the input element. Runtime.getProperties() on that node returns the correct "value" though. I'm surprised because DOM.getDocument() is always returning the declared value for attributes, but it picks up mutations in the DOM i.e. new node, moved nodes, etc. |
|
►
Sign in to add a comment |
|
Comment 1 by paulir...@chromium.org
, Dec 14 2016AFAIK, this is the classic difference between attributes and properties. the value should be equivalent to getting elem.getAttribute('value') which is also stale after a user edit. :) agree it doesnt make sense, but it's expected behavior.