https://bugzilla.wikimedia.org/show_bug.cgi?id=31417
--- Comment #4 from Daniel Friesen <[email protected]> 2011-10-06 19:17:16 UTC --- (In reply to comment #3) > I don't really know what you mean by "searching recursively". My > TabbedLanguages script ([[wikt:User:Yair rand/TabbedLanguages2.js]], which > will > hopefully be enabled by default at some point on a bunch of Wiktionaries), was > broken by this. It searched through the childnodes of #bodyContent/variants > and > sorted the content into divs based on h2s that were immediate children of > bodyContent. The only way to make this work now is to either do a lot of > navigating through it to find the mw-content, or use a heavy jQuery search for > the class. So, from the perspective of JS everything has moved into a div > hidden in the middle of nowhere. jQuery selectors are faster than you think. Especially with class searching being natively implemented in modern browsers. I don't even know where to begin on what's wrong with that script. What was the reason you couldn't use bodyContent.getElementByTagName('h2')? -- 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
