I haven't found any documentation yet that describes this behaviour...
- <!DOCTYPE html>
- <html>
- <head>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
- <script>
- $(document).ready(function(){
- $("*").not("#mytag").css("color","red");
- });
- </script>
- </head>
- <body>
- <h2>Lorem in red</h2>
- <h4>Ipsum in red</h4>
- <h2>Lorem in red</h2>
- <h4 id="mytag">why is this text red??</h4>
- </body>
- </html>