RESOLVED DUPLICATE of bug 5036345130
Attribute selectors in CSS
https://bugs.webkit.org/show_bug.cgi?id=45130
Summary Attribute selectors in CSS
Andrew fedoniouk
Reported 2010-09-02 14:09:06 PDT
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.
Attachments
Emil A Eklund
Comment 1 2011-03-08 16:09:35 PST
*** This bug has been marked as a duplicate of bug 50363 ***
Note You need to log in before you can comment on or make changes to this bug.