https://bugzilla.wikimedia.org/show_bug.cgi?id=30471

       Web browser: ---
             Bug #: 30471
           Summary: MediaWiki generates ids which can't be selected
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
               URL: http://pt.wiktionary.org/w/index.php?title=escudismo&o
                    ldid=278201&uselang=en
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


If a page has a section such as[1]
    = Português =

or[2]
    == mediaWiki.loader ==

then the ids generated by MediaWiki are "Portugu.C3.AAs" and "mediaWiki.loader"
respectively. This makes it impossible to select those specific sections by
using
    jQuery( '#Portugu.C3.AAs' );
or
    jQuery( '#mediaWiki.loader' );
or equivalently in CSS,
    #Portugu.C3.AAs {
        color: red;
    }
since the dot "." is interpreted as a class selector.

* Why does MW adds those dots in the first example?
* Would it be possible to fix this?


[1]
http://pt.wiktionary.org/w/index.php?title=escudismo&oldid=278201&uselang=en
[2] [[mw:RL/DM#mediaWiki.loader]]

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to