[documentation] modifying links in admin/help in handbook to
prevent
Angie Byron
drupal-docs at webchick.net
Sun Nov 20 07:50:24 UTC 2005
Sorry, I used the wrong return address to send this before and thought I resent
it but I guess not.
Charlie Lowe wrote:
> I should probably mention that I'm working on updating all of the core
> modules, not contrib.
That's okay, that's the section most people are going to be guaranteed to look
at, so imho the most important one to fix up. The contrib can be done as we go.
> I just tried the following test which is different from yours:
>
> <strong class="drupal-link/admin/aggregator">administer >>
> aggregator</strong>
>
> Firefox doesn't mind it at all. Would it be invalid XHTML to use "/" in
> the class names? If it would be valid, then we can avoid a lot of typing
> errors. If someone has clean url's enabled and is checking the handbook
> pages against a live Drupal site, they only need to copy and paste the
> appropriate relative URL for part of the class name.
>
> Now, since we aren't using the CSS, it doesn't have to validate in a CSS
> file, just as XHTML, right?
>
> I know. I'm probably making all the web designers cringe. But this would
> make it very easy to do :)
Heh, well... Sorry, had to finish cringing for a second. ;)
You're right that the W3C XHTML validator doesn't complain when you do this
(even with XHTML strict). However, when you paste the line:
.drupal-link/admin/aggregator { color: red; }
into the *CSS* validator, it gives a parse error. Since browsers parse both
XHTML *and* CSS, I don't think we can really do this. :\ Though it does not
screw up Firefox today, there's no telling that it won't screw up Konqueror or
Safari or Opera or IE, etc. either today or some point down the line. If it
needs to be done, better to do it once and get it right imho.
Sorry. :(
-Angie
More information about the documentation
mailing list