[Mozile] Rng and command question
James A. Overton
james at overton.ca
Sun Jan 7 14:44:11 PST 2007
Yeah, that should be easy. As long there's something distinctive in
the target element(s), then you can write some JavaScript to get the
job done. In my last example, instead of
mozile.dom.getClass(node) == "catlinks"
you could use
node.nodeName == "p" && node.getAttribute("id") == "foo"
or whatever. You're right that Mediawiki should be more clear about
what is a template (for example). Their wikitext parser throws out of
a lot of useful information when it creates the HTML.
James
On 2007-01-07, at 4:20 PM, Dirk Westfal wrote:
...
>
> I`ll try that.
> Does the same/a similiar method can also be used on elements that
> don`t have a class, just an id? Most mediawiki templates only provide
> id`s, not classes (oddly enough - they should all be in something like
> a 'template' class, imho, to easier fish them out...).
>
> I`m still fiddling around with the basics, but so far mozile is
> great :)
>
> thx,
> Dirk
> _______________________________________________
> Mozile mailing list
> Mozile at mozdev.org
> http://mozdev.org/mailman/listinfo/mozile
More information about the Mozile
mailing list