[Webkit-unassigned] [Bug 83298] getMatchedCSSRules() should return null when the second argument is an unrecognized pseudo-element name

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 5 12:20:52 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=83298


Tab Atkins <tabatkins at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |tabatkins at google.com
     Ever Confirmed|0                           |1




--- Comment #1 from Tab Atkins <tabatkins at google.com>  2012-04-05 12:20:49 PST ---
Here's a reproduction:

<!DOCTYPE html>
<p>dummy text</p>
<style>
p { color: blue; }
</style>
<script>
function print(text) { 
 document.body.appendChild(document.createTextNode(text));
 document.body.appendChild(document.createElement('br')); 
}
print("For gMCR(el), rules are '" + 
  getMatchedCSSRules(document.querySelector('p'))[0].cssText + "'");
print("For gMCR(el, 'before'), rules are '" + 
  getMatchedCSSRules(document.querySelector('p'), 'before') + "'");
print("For gMCR(el, 'foo'), rules are '" + 
  getMatchedCSSRules(document.querySelector('p'), 'foo')[0].cssText + "'");
</script>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list