Bug 138584 - getComputedStyle() does not throw if you pass it a text node
Summary: getComputedStyle() does not throw if you pass it a text node
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-10 15:27 PST by Hallvord R. M. Steen
Modified: 2022-07-14 13:26 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hallvord R. M. Steen 2014-11-10 15:27:36 PST
See test case here: 
http://hallvord.com/temp/moz/bug/wc412.htm
Also attached. Firefox gets it right (per spec AFAIK), WebKit/Blink doesn't.
Comment 1 karl 2016-08-01 23:35:56 PDT
This was fixed in Chromium
https://bugs.chromium.org/p/chromium/issues/detail?id=431915

Edge, Chrome and Firefox behaves now the same.
Only WebKit is not behaving like the other browsers.
Comment 2 Brent Fulgham 2022-07-14 13:26:42 PDT
WebKit now handles this properly, too.