Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 973 by [email protected]: getComputedStyle does not accept empty string as 2nd arg
http://code.google.com/p/google-caja/issues/detail?id=973

window.getComputedStyle(document.body, null).width; // works
window.getComputedStyle(document.body, '').width; // fails as "Bad pseudo
class"

Techinically caja is right per the spec:

"pseudoElt of type DOMString
The pseudo-element or null if none."


http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-OverrideAndComputed

But Mozilla docs contradict this:
"pseudoElt is a string specifying the pseudo-element to match. Should be
an empty string for regular elements."
https://developer.mozilla.org/En/DOM:window.getComputedStyle

However, all browsers that implement computedStyle accept either form (and
possibly other falsey values).

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to