[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HTML validation (mit tidy) (was: SGML, statische Seiten und Links)



Hallo Peter,

* Peter Palfrader <weasel@debian.org> [07-06-02 04:32]:

[perl regex]
> [ Machst Du eigentlich gerne Backslashes wo keine noetig sind?

Vor < u. > sind keine noetig, stimmt.

> und wenn
>   man , statt / verwendet, braucht man noch nicht mal die normalen Slashes
>   escapen. ]

Aber so siehts doch viel professioneller aus. :-)

> > > Sollte tidy sowas aufraeumen?:
> > > 	<a href="http://c [..] h?rev=1.8&content-type=text/plain">Skript</a>
> > > nach
> > > 	<a href="http://c [..] h?rev=1.8&amp;content-type=text/plain">Skript</a>
> > > und fleissig motzen, dasse es &content-type nicht kennt...
> > 
> > Eigentlich nicht, macht es das?
> 
> Yupp.

Nicht schlecht. Ich habe uebrigens auch was schoenes entdeckt:

| $ cp scripts/index.html scripts/index.html.bkp
| $ tidy scripts/index.html
| [...]
| scripts/index.html: Doctype given is "-//W3C//DTD HTML 4.01 Transitional//EN"
| scripts/index.html: Document content looks like HTML 4.01 Transitional
| No warnings or errors were found.
| [...]

Bis jetzt ist alles ok aber dann wird interessant:

| $ mv scripts/index.html.bkp scripts/index.html
| $ tidy */*.html
| [...]
| scripts/index.html: Doctype given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
|                                                   ^^^^^^^^^
| scripts/index.html: Document content looks like HTML 4.01 Transitional
|                                                 ^^^^^^^^^
| No warnings or errors were found.
| [...]

| $ tidy */*.html
| scripts/index.html: Doctype given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
| scripts/index.html: Document content looks like XHTML 1.0 Transitional
|                                                 ^^^^^^^^^
| No warnings or errors were found.
| [...]

Ich probiere gerade weblint aus, ich glaube das gefaellt mir besser. Gibts sonst
noch vernuenftige alternativen zu tidy?

[make Probleme]
> Wenn du ein "-" davor tust, steigt make zumindest bei Fehlern nicht mehr
> aus. [...]

Funktioniert, danke!

Janto

-- 
Encrypted mail preferred!
GnuPG-Key:      http://www.sylence.net/gpgkey.asc
Key ID:         0x8C53625F
Fingerprint:    35D7 8CC0 3DAC 90CD B26F B628 C3AC 1AC5 8C53 625F

Attachment: pgp2o4AUX5XfM.pgp
Description: PGP signature


Reply to: