Re: Right-click to validate?

2002-02-22 Thread Raj Bhaskar

> Somehow I doubt this is the reason. In Feb 18 builds I am also seeing a 
> wierd bug whereby I can't press the down arrow key in the autocomplete 
> dropdown box. 

This was caused by the fix to bug 115686 and was fixed in the next 
nightly (see that bug for details).

Raj.





Re: Right-click to validate?

2002-02-19 Thread Per Ångström

Jorey Bump <[EMAIL PROTECTED]> wrote in message 
news:<[EMAIL PROTECTED]>...
> Opera has a great feature that allows you to right-click on any Web page 
>   to access an option that sends it to the W3C validator. Is there 
> anything similar for mozilla?

I would like to point out that Opera will upload the source code
directly to the validator, i.e. it will not just pass the URL. This is
an important aspect, as it allows the validator to validate the source
as the browser sees it.

You can thus validate sites that use server-side browser sniffing to
serve the validator a different page than it server your browser, and
you can validate intranet pages and unpublished work in progress.

I believe that to achieve the same effect in Mozilla, the feature has
to be integrated with the browser. I would gladly see such a feature,
although I think version 1.0 is more important right now.

-- 
Per Å.




Re: Right-click to validate?

2002-02-18 Thread Travis Crump

damnit, it didn't post as html and got mangled anyway:

javascript:(function(){ function fixFileUrl(u) { var windows,u; windows 
= (navigator.platform.indexOf("Win") != -1);  /* chop off file:///, 
unescape each %hh, convert / to \ and | to : */  u = u.substr(windows ? 
8 : 7); u = unescape(u); if(windows) { u = u.replace(/\//g,"\\"); u = 
u.replace(/\|/g,":"); } return u; } /* bookmarklet body */ var 
loc,fileloc; loc = document.location.href; if (loc.length > 9 && 
loc.substr(0,8)=="file:///") { fileloc = fixFileUrl(loc); if 
(prompt("Copy filename to clipboard, press enter, paste into validator 
form", fileloc) != null) { document.location.href = 
"http://validator.w3.org/file-upload.html"; } } else 
document.location.href = "http://validator.w3.org/check?uri="; + 
escape(document.location.href); void(0); })();

is the address you want to make the location of the bookmark.

PS.  Is this a bug in Mozilla?  I used insert link, but it doesn't even 
appear to have the  or  parts, or did I do something 
wrong?

Travis Crump wrote:
> Bookmark the following link:   fixFileUrl(u) { var windows,u; windows = (navigator.platform.indexOf(> 9 
> && loc.substr(0,8)=="file:///") { fileloc = fixFileUrl(loc); if 
> (prompt("Copy filename to clipboard, press enter, paste into validator 
> form", fileloc) != null) { document.location.href = 
> "http://validator.w3.org/file-upload.html"; } } else 
> document.location.href = "http://validator.w3.org/check?uri="; + 
> escape(document.location.href); void(0); })();"> this link ...
> Then when you want to validate a page you just use the bookmark while 
> viewing the page.
> 
> Sorry about the html, but I was worried the href which is fairly long 
> might get mangled.





Re: Right-click to validate?

2002-02-18 Thread Travis Crump




Bookmark the following link:  9 && loc.substr(0,8)=="file:///") { fileloc = fixFileUrl(loc); if (prompt("Copy filename to clipboard, press enter, paste into validator form", fileloc) != null) { document.location.href =" "http://validator.w3.org/file-upload.html"" } } else document.location.href =" "http://validator.w3.org/check?uri="" + escape(document.location.href); void(0); })();">
this link ...
Then when you want to validate a page you just use the bookmark while viewing
the page.

Sorry about the html, but I was worried the href which is fairly long might
get mangled.




Re: Right-click to validate?

2002-02-18 Thread Jorey Bump

Mike Koenecke wrote:
> On or about Mon, 18 Feb 2002 16:38:47 GMT, Jorey Bump
> <[EMAIL PROTECTED]> allegedly wrote:
> 
> 
>>Opera has a great feature that allows you to right-click on any Web page 
>> to access an option that sends it to the W3C validator. Is there 
>>anything similar for mozilla?
>>
> 
> In Composer, Edit/Validate HTML.

This only takes you to the page, it doesn't submit the code to the 
validator.





Re: Right-click to validate?

2002-02-18 Thread Pratik

On 02/18/2002 02:03 PM, Sören Kuklau wrote:
> Pratik wrote:
> 
>>On 02/18/2002 12:27 PM, Jonas Jørgensen wrote:
>>
>>>Pratik wrote:
>>>
Great idea. But for some reason Mozilla doesn't like "v 
http://www.mozilla.org";. It just doesn't do anything on pressing 
enter. I have to type "v www.mozilla.org". It doesn't like the 
http://. dunno why.

> 
>>>WFM 2002-02-12-03 Win2k...
>>>
> 
>>Doesn't work for me - linux 2002-02-15-13
>>
> 
> That's a recent regression, which I think was caused by the ctrl-enter 
> patch.

Are you talking about http://bugzilla.mozilla.org/show_bug.cgi?id=50255

Somehow I doubt this is the reason. In Feb 18 builds I am also seeing a 
wierd bug whereby I can't press the down arrow key in the autocomplete 
dropdown box. Its not there in Feb 15 build. But v http:/// doesn't work 
in the Feb 15 build so it might not be the same bug.

Do you have the bug id for this bug?

Pratik.





Re: Right-click to validate?

2002-02-18 Thread Sören Kuklau

Pratik wrote:
> On 02/18/2002 12:27 PM, Jonas Jørgensen wrote:
>> Pratik wrote:
>>> Great idea. But for some reason Mozilla doesn't like "v 
>>> http://www.mozilla.org";. It just doesn't do anything on pressing 
>>> enter. I have to type "v www.mozilla.org". It doesn't like the 
>>> http://. dunno why.

>> WFM 2002-02-12-03 Win2k...

> Doesn't work for me - linux 2002-02-15-13

That's a recent regression, which I think was caused by the ctrl-enter 
patch.

Doesn't work for me either on 2002-02-18-03, Win32. Used to work for me 
few days ago.

-- 
Regards,
Sören Kuklau ('Chucker')
[EMAIL PROTECTED]





Re: Right-click to validate?

2002-02-18 Thread Pratik

On 02/18/2002 12:27 PM, Jonas Jørgensen wrote:
> Pratik wrote:
> 
> 
>>>Not currently, but if you add a bookmark to 
>>>
> 
>>>and give it the keyword "v", you can send any page to the validator by 
>>>typing "v http://example.com/something";.
>>>
>>Great idea. But for some reason Mozilla doesn't like "v 
>>http://www.mozilla.org";. It just doesn't do anything on pressing enter. 
>>I have to type "v www.mozilla.org". It doesn't like the http://. dunno why.
>>
> WFM 2002-02-12-03 Win2k...

Doesn't work for me - linux 2002-02-15-13

Pratik.





Re: Right-click to validate?

2002-02-18 Thread Jonas Jørgensen

Pratik wrote:

>> Not currently, but if you add a bookmark to 
>> 
>
> 
>> and give it the keyword "v", you can send any page to the validator by 
>> typing "v http://example.com/something";.
> 
> Great idea. But for some reason Mozilla doesn't like "v 
> http://www.mozilla.org";. It just doesn't do anything on pressing enter. 
> I have to type "v www.mozilla.org". It doesn't like the http://. dunno why.
WFM 2002-02-12-03 Win2k...





Re: Right-click to validate?

2002-02-18 Thread Pratik

On 02/18/2002 12:01 PM, Jonas Jørgensen wrote:
> Jorey Bump wrote:
> 
>>Opera has a great feature that allows you to right-click on any Web page 
>>  to access an option that sends it to the W3C validator. Is there 
>>anything similar for mozilla?
>>
> 
> Not currently, but if you add a bookmark to 
> 
>
> 
> and give it the keyword "v", you can send any page to the validator by 
> typing "v http://example.com/something";.

Great idea. But for some reason Mozilla doesn't like "v 
http://www.mozilla.org";. It just doesn't do anything on pressing enter. 
I have to type "v www.mozilla.org". It doesn't like the http://. dunno why.

Pratik.





Re: Right-click to validate?

2002-02-18 Thread Jonas Jørgensen

Jorey Bump wrote:
> Opera has a great feature that allows you to right-click on any Web page 
>   to access an option that sends it to the W3C validator. Is there 
> anything similar for mozilla?

Not currently, but if you add a bookmark to 

 
and give it the keyword "v", you can send any page to the validator by 
typing "v http://example.com/something";.

/Jonas