[Webkit-unassigned] [Bug 45130] New: Attribute selectors in CSS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 2 14:09:06 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=45130
Summary: Attribute selectors in CSS
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: andrew.fedoniouk at gmail.com
Attribute selectors:
http://www.w3.org/TR/css3-selectors/#attribute-representation
do not work for attributes changed from DOM access methods in scripts.
Here is a test case:
<html>
<head>
<style>
div { display:none; }
body[show="n1"] #n1 { display:block; }
body[show="n2"] #n2 { display:block; }
</style>
<script type="text/javascript">
function test()
{
document.body.setAttribute("show","n2");
}
</script>
</head>
<body show="n1">
<a href="javascript:test()">Test</a>
<div id="n1">1</div>
<div id="n2">2</div>
</body>
</html>
After clicking on hyperlink div#n2 shall be visible but it is not.
--
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