WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
104547
Object.observe() not notified for changes to DOM properties
https://bugs.webkit.org/show_bug.cgi?id=104547
Summary
Object.observe() not notified for changes to DOM properties
Alex Russell
Reported
2012-12-10 06:27:08 PST
Changes to DOM properties (not attributes) do not appear to trigger observers today. E.g.: Object.observe(window.navigator, console.log.bind(console)); Now go offline. We should observe that this logs a change to window.navigator.onLine, but currently does not. This property, e.g., is specified as a readonly attribute and not a getter, and therefore should be observable:
http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#browser-state
Attachments
Add attachment
proposed patch, testcase, etc.
Oliver Hunt
Comment 1
2012-12-10 10:30:39 PST
The general consensus is that all dom properties that are reflecting internal state will be represented as getters. The bug here is not that the value is not observable, but that it is not explicitly specified as a getter.
Alexey Proskuryakov
Comment 2
2012-12-10 10:34:44 PST
Is there a bug tracking that?
Oliver Hunt
Comment 3
2012-12-10 10:37:14 PST
(In reply to
comment #2
)
> Is there a bug tracking that?
I believe so, but i'm at a loss to recall what it is -- maybe sam knows?
Sam Weinig
Comment 4
2012-12-10 10:43:42 PST
(In reply to
comment #3
)
> (In reply to
comment #2
) > > Is there a bug tracking that? > > I believe so, but i'm at a loss to recall what it is -- maybe sam knows?
https://bugs.webkit.org/show_bug.cgi?id=49739
?
Oliver Hunt
Comment 5
2012-12-10 10:47:21 PST
(In reply to
comment #4
)
> (In reply to
comment #3
) > > (In reply to
comment #2
) > > > Is there a bug tracking that? > > > > I believe so, but i'm at a loss to recall what it is -- maybe sam knows? > >
https://bugs.webkit.org/show_bug.cgi?id=49739
?
That's the one
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug