We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1586
    • 33 Posts
    I HAVE FOUND A BUG! It ’s my free of charge hosting provider with it’s stupid ads! Here his auto-added code:
    <SCRIPT language="JavaScript">var lgn='fotoalbum'</SCRIPT>
    </HTML><!-- ><!-- "><!-- --></TEXTAREA></FORM>
    </TITLE></COMMENT></A>
    </DIV></SPAN></ILAYER></LAYER></IFRAME></NOFRAMES></STYLE></SCRIPT></NOSCRIPT></TABLE></SCRIPT></APPLET></FONT>
    <STYLE>
    #bn {
      display: block;
    }
    </STYLE>
    <SCRIPT language="JavaScript" src="http://adv.vlasenko.net/adv.js"></SCRIPT>


    as you can see there is close </div> but no open <div>! NumberOf (</div>) != NumberOf(<div>) == ValidationError
      • 25663 MODX Staff
      • 12,272 Posts
      There is also content after the closing HTML. ... in fact there’s two closing html tags. You get what you pay for. tongue
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 1586
        • 33 Posts
        So, do you think "here class" doesn’t work because of invalid HTML? I don’t think so...
          • 25663 MODX Staff
          • 12,272 Posts
          Did you change the selector per my comment above?
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 1586
            • 33 Posts
            Oh, rthrash, thanks. With this:

            #navbar li.current a {
            background:  #0183CE;
            }


            it works. I’ve seen in page generated by modx, and found that modx apply class to <li> descriptor, not to <a>. So li a.current{} will not work, but li.current a{} will.

            Thank for help!