Re: [Htmlvalidator-help] tidy FreeBSD
Brought to you by:
mgueury
From: [LoN]Kamikaze <LoN...@gm...> - 2006-06-08 15:05:46
|
Marc Gueury wrote: > Hi Dominic, >=20 > I think that what happens is that the detection of the OS does not work= > for freeBSD. > There is a code in the tidyInstall.js that detect the OS. >=20 > function tidyInstallGetPlatform() > { > var platform =3D navigator.platform.toLowerCase(); > if (platform.indexOf('linux') !=3D -1) > { > return 'linux'; > } > if (platform.indexOf('mac') !=3D -1) > { > return 'mac'; > } > return 'windows'; > } >=20 > Based on this, the extension tries to detect the OS and file extension.= > I think that it will not work for FreeBSD ? > Just I do not know how to do it in a better way. If you could correct > this, I will include the fix in the next beta version > that I finally succeeded to compile and run on Linux. >=20 > Marc >=20 It should be enought to add: if (platform.indexOf('bsd') !=3D -1) { return 'bsd'; } Your tidyInstallGetPlatformName() falls back to lib{name}.so so that it r= eturns the right file name. Adding this I now get the following error message: Html Validator-002: Failed autoRegistering renamed platform specific libn= stidy.so Upon the next start of Firefox I get the usual library not found page. Th= e JavaScript console holds the following messages: Warning: reference to undefined property Components.classes['@mozilla.org= /tidy;1'] Source File: chrome://tidy/content/tidyUtil.js Line: 119 Error: Components.classes['@mozilla.org/tidy;1'] has no properties Source File: chrome://tidy/content/tidyUtil.js Line: 119 Warning: anonymous function does not always return a value Source File: chrome://dta/content/dta/addingFunctions.js Line: 90, Column: 1 Source Code: }, Error: oTidyUtil.tidy has no properties Source File: chrome://tidy/content/tidyBrowser.js Line: 1194 Error: oTidyUtil.tidy has no properties Source File: chrome://tidy/content/tidyBrowser.js Line: 1194 Error: oTidyUtil.tidy has no properties Source File: chrome://tidy/content/tidyBrowser.js Line: 188 Error: oTidyUtil.tidy has no properties Source File: chrome://tidy/content/tidyBrowser.js Line: 1194 Error: oTidyUtil.tidy has no properties Source File: chrome://tidy/content/tidyBrowser.js Line: 1194 Error: oTidyUtil.tidy has no properties Source File: chrome://tidy/content/tidyBrowser.js Line: 1194 |